摘要: 也是采用两种方法,先放出第一种方法//https://upload.api.weibo.com/2/statuses/upload.json //https://api.weibo.com/2/statuses/update.json NSUserDefaults *info = [NSUserDefaultsstandardUserDefaults]; NSData *imageData = UIImagePNGRepresentation([UIImageimageNamed:@"auth_header.png"]); NSURL *url = [[NSURLalloc 阅读全文
posted @ 2012-08-10 17:43 worldworld 阅读(557) 评论(0) 推荐(0) 编辑
摘要: 这里以新浪的为例子进行说明,后面会陆续添加;这里同时提供两种方式,一种是通过ASIFormData的方式来完成NSURL *url = [[NSURLalloc] initWithString:@"https://api.weibo.com/2/statuses/update.json"];// statuses/upload ASIFormDataRequest *request = [[ASIFormDataRequestalloc] initWithURL:url]; NSUserDefaults *info = [NSUserDefaultsstandardUser 阅读全文
posted @ 2012-08-10 17:40 worldworld 阅读(638) 评论(0) 推荐(0) 编辑