willingYaTou 阅读(256) 评论(0)

越努力.越幸福.----willingseal.


    UIImage *addPic = [UIImage imageNamed: @"ko.png"];

    NSData *imageData = UIImagePNGRepresentation(addPic);// png

    // NSData *imageData = UIImageJPEGRepresentation(addPic, 1);// jpeg

    [picker addAttachmentData: imageData mimeType: @"" fileName: @"ko.png"];