You can write following code in ViewDidLoad method
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(newDate:)];
and also define the selector to get the user interaction response
This is the Selector of above right bar button
- (void) newDate: (id) sender{
}
No comments:
Post a Comment