我曾经对话发布朋友墙。这里 self.fbFriendsInvitedid 是我的朋友 ID 的数组。我想要延迟打开 dilog。因为如果数组元素更大,那么应用程序崩溃了。我该怎么办?
Facebook *fb = [((AppDelegate*)[[UIApplication sharedApplication] delegate]) fbInstance];
NSLog(@"%@",self.fbFriendsInvited);
NSLog(@"%@",self.fbFriendsInvitedid);
for (int i=0; i<self.fbFriendsInvitedid.count; i++) {
NSObject *obj=[self.fbFriendsInvitedid objectAtIndex:i];
NSLog(@"%@",obj);
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
obj,@"to",@"Invite Me", @"name", @"available for iOS apps in Facebook Platform.", @"caption", @"Check out 'Invite Me' for iOS & be my friend here",@"description",@"http://www.inviteme.com",@"link",@"http://www.facebookmobileweb.com/inviteme/img/facebook_icon_large.png", @"picture",nil];
[fb dialog:@"feed" andParams:params andDelegate:self];
请帮忙。!!