开发者

sending parameters to void objective c,iphone sdk

开发者 https://www.devze.com 2023-03-07 05:42 出处:网络
This won\'t work, I haveNSMutableArray - uidslist and need to sent it to the doAfterRe开发者_C百科questComplete as urlString, how I can do it?

This won't work, I have NSMutableArray - uidslist and need to sent it to the doAfterRe开发者_C百科questComplete as urlString, how I can do it?

Please help me, I'm new in objective c

[uidstr performSelector:@selector(doAfterRequestComplete:) ];

.m

-(void)doAfterRequestComplete:(NSMutableString *)urlString
{
    NSLog(@"%@",urlString);
}

.h

-(void)doAfterRequestComplete:(NSMutableString *)urlString;


You need to add the object (and call it on the object with this method, probably self):

[self performSelector:@selector(doAfterRequestComplete:) withObject: uidstr];
0

精彩评论

暂无评论...
验证码 换一张
取 消