我有一个将图像上传到 Facebook 的应用程序。这是我的代码的一部分:
[[self appDelegate] facebooking]; // checke that the user is loged in
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
labeledImage, @"source",
FB_IMG_POST_TITLE,@"message",
nil];
[ [[self appDelegate] getFacebookVar] requestWithGraphPath:[NSString stringWithFormat: @"/me/photos?access_token=%@", self.appDelegate.getFacebookVar.accessToken] andParams:params andHttpMethod:@"POST" andDelegate:self];
我想要
A)使上传过程成为不同的线程。
B) 为用户提供取消上传的选项。
我该怎么做?