I have this method:
- (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){
}];
}
I also have a uibutton in my tableview cell so I was using [cell.retweetButton addTarget:self action:@selector(retweet:)forControlEvents:UIControlEventTouchUpInside];
How can I use my idString as the argument for the method parameter with the selector?
-(void)selector: (UIButton *)buttonReference
. You cannot retrieve aNSString
from it. – Luca D'Alberti