码迷,mamicode.com
首页 > 其他好文 > 详细

待排查代码

时间:2015-06-01 20:20:20      阅读:110      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!