我有这个方法:
- (void)retweet:(NSString *)idString {
STTwitterAPI *twitter;
[twitter postStatusRetweetWithID:idString successBlock:^(NSDictionary *status) {
UIAlertView *retweetSuccess = [[UIAlertView alloc]initWithTitle:@"Retweeted!" message:@"You have retweeted this tweet." delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
[retweetSuccess show];
} errorBlock:^(NSError *error){
}];
}
我的表格视图单元格中也有一个 uibutton,所以我正在使用[cell.retweetButton addTarget:self action:@selector(retweet:)forControlEvents:UIControlEventTouchUpInside];
如何使用我的 idString 作为选择器的方法参数的参数?