xcodeでlineに投稿する
UIImageのlineImgを宣言して、UIImagePNGRepresentation( )
↑ここに入れた
UIImage *lineImg = UIGraphicsGetImageFromCurrentImageContext() ;
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
[pasteboard setData:UIImagePNGRepresentation(lineImg) forPasteboardType:@"public.png"];
NSString *LineUrlString = [NSString stringWithFormat:@"line://msg/image/%@", pasteboard.name];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:LineUrlString]];
出典:
http://lab.dolice.net/blog/2013/06/29/objc-share-to-social/