ios - UIBarButtonItem clickable on left but not on right of navigation controller -
this strange behavior , i'm experiencing in ios8 ipads. have uibarbuttonitem needs go on right side of navigation bar. here code set button:
uibarbuttonitem *btnattopen = [[uibarbuttonitem alloc] init]; [btnattopen setaction:@selector(addattclick:)]; [btnattopen setimage:[uiimage imagenamed:@"addatt"]]; [btnattopen settarget:self]; [self.navigationitem setrightbarbuttonitem:btnattopen];
when this, btnattopen button appears should not clickable. behaves if static image. strangest part of if replace setrightbarbuttonitem: setleftbarbuttonitem: button behaves intended.
this doesn't make sense me. has seen kind of behavior? ideas why may occurring? thanks!
if doesn't want react appropriately touches, problem 1 of parent view's frames has incorrect size, doesn't cover child's frame.
you check them, example, printing out view hierarchy in gdb: po [[uiwindow keywindow] recursivedescription]
Comments
Post a Comment