I have set a function in a selector. After a function call I want to not call selector. I wrote this line of code but it is throwing an exception:

```
self.touchselector = nil;

```

How can I reset the function of selector in cocos2d?