I have a tabbarController:
UITabBarController* tabBarController = [[UITabBarController alloc] init];
UIViewController* view1 = [[UIViewController alloc] init];
UIViewController* view2 = [[UIViewController alloc] init];
tabBarController.viewControllers = [NSArray arrayWithObjects:view1, view2, nil];
I want to add a long press gesture to view1's tab button(called tabBarItem) or just add a long press gesture to the tabbar.
How could I do?
Thanks. Any advice would be appreciated.
Just put your UITabbarController Methods
and than use this for add gesture->
and the selector is -