How can I pop up with a button pressed, I have passed the code below with the previous view controller. Thanks
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle: @ "Back" style: UIBarButtonItemStyleBordered Target: zero operation: zero];
After
There is no need to manually add a back button.
If you really need to pop the custom button view controller, you can create a custom message
- (zero) popViewControllerWithAnimation {[self.navigationController popViewControllerAnimated: Yes]; } ... self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle: @ "Back" style: UIBarButtonItemStyleBordered Target: Self-action: @selector (popViewControllerWithAnimation)];
or create a NSInvocation
NSInvocation * invoc = [NSInvocation invocationWithMethodSignature: [self.navigationController methodSignatureForSelector: @selector (popViewControllerAnimated :)]]. // Check for memory management issues: You may need to reduce the Invek [invoke Settasad himself. Navigation controller]; [Inoc Set Selectors: @Sillector (PopWebControlerAnlimited :)); BOOL Yes = Yes; [Inoc set limit: & amp; Yes in Index: 2]; self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle: @ "back" style: UIBarButtonItemStyleBordered goal: invoc action: @selector (call)];
Comments
Post a Comment