I have a little problem with adding actions on UITabBarItems. I am not using a TabBarController, just the tabbar with items.
I have tried the following in viewDidLoad:
[_myTabItem performSelectorOnMainThread:@selector(myfunction:) withObject:nil waitUntilDone:NO];
This is causing a Unrecognized Selector sent to instance exception.
Have anyone dealt with similar problem?
from the above line of code its is clear that
myfunctionhaving an argument , but you are not passing any argument ,you setwithObject:nilEither pass required parameter for
myfunction,or just use simplemyfunction { }