Created
September 14, 2011 15:09
-
-
Save escoz/1216828 to your computer and use it in GitHub Desktop.
Damn button.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(onSave)]; | |
item.enabled = NO; | |
NSLog(@"%@", item); // OBJ is NOT nil here. | |
self.navigationItem.rightBarButtonItem = item; | |
} | |
// the button appears enabled. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment