首页 > 其他 > 详细

待排查代码

时间:2015-06-01 20:17:35      阅读:219      评论:0      收藏:0      [点我收藏+]

  //读取账户信息

//    AcountModel *acount = [AcountTool acount];

//    

//    

//    //请求接口

//    

//    AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];

//  

// 

//    NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithObjectsAndKeys:acount.access_token,@"access_token",self.textView.text,@"status", nil];

//    

//    

//   

//        [manager POST:@"https://upload.api.weibo.com/2/statuses/upload.json" parameters:parameters constructingBodyWithBlock:^(id<AFMultipartFormData> formData) {

//        

//        NSData *data = UIImageJPEGRepresentation(self.imgView.image, 1.0);

//        

//        [formData appendPartWithFileData:data name:@"picw" fileName:@"" mimeType:@"image/jpeg"];

//        

////         NSData *data = UIImagePNGRepresentation(self.imgView.image);

////        [formData appendPartWithFileData:data name:@"files" fileName:@"jinlingpopona.png" mimeType:@"image/png"];

////            NSLog(@"%@",data);

//       

//    } success:^(AFHTTPRequestOperation *operation, id responseObject) {

//        if ([_delegate respondsToSelector:@selector(didClickSendBtnWithViewController:)]) {

//            [_delegate didClickSendBtnWithViewController:self];

//        }

//        NSLog(@"%@",responseObject);

//        [MBProgressHUD showSuccess:@"发送成功"];

//

//        

//    } failure:^(AFHTTPRequestOperation *operation, NSError *error) {

//       [MBProgressHUD showError:@"发送失败"];

//        NSLog(@"***********%@",error);

//        

//    }];

 

待排查代码

原文:http://www.cnblogs.com/yintingting/p/4544671.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!