我有这个代码:
UIBarButtonItem *donebutton = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonItemStyleDone target:self action:@selector(doneButtonPressed:)];
self.navigationItem.rightBarButtonItem = donebutton;
现在我想将一些参数传递给该方法:
- (void)doneButtonPressed{}
怎么做 ?