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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -