Now double-click the event would like to ask you UITabBarItem there? If so, what should I deal with it inside?
Daren seeking solutions?
Reply:
NSObject
|
UIBarItem
|
UITabBarItem
So it is without this feature.
UIBarButtonItem because there are a method:
- (Id) initWithCustomView: (UIView *) customView;
So that it can be.
Reply:
There ah. You can interpret it clicks, gestures, multi-touch "is a double-
Reply:
Seems UITabBarItem can not add gestures? Solution. . . . There Sha method ~ ~
Reply:
Find a solution of the ~ ~ ~ ~
- (BOOL) tabBarController: (UITabBarController *) tbc shouldSelectViewController: (UIViewController *) vc {
UIViewController * tbSelectedController = tbc.selectedViewController;
if ([tbSelectedController isEqual: vc]) {
/ / Here you can catch this method
return NO;
}
/ / NSLog (@ "1");
return YES;
}
No comments:
Post a Comment