iphone - Receiving UINavBar Items actions -


- (void)viewdidload {     //so created navbar item in detail view      uibarbuttonitem * savebutton =     [[uibarbuttonitem alloc] initwithbarbuttonsystemitem:uibarbuttonsystemitemsave                                                     target:self                                                                 action:@selector(savefunc)];     self.navigationitem.rightbarbuttonitem = savebutton; } 

i want write code save data when user clicks save button in navbar. how write method this. stuck did when created navbar item through interface builder having troubles doing when create button through code.

now implement method

-(void) savefunc

and dont forget add:

[savebutton release];


Comments

Popular posts from this blog

c# - Outlook Add-in,group emails based on color category -

PHP: Exploding array elements -

forms - Secure PHP File Upload Script -