iOS7ã§LINEã§ç»åå ±æããæ¹æ³
LINEã§ç»åå
±æããã®ã¯ããªããiOS7ã§ã¯é対å¿ã«ãªã£ã¦ããã
ããã¥ã¡ã³ãã¯ãã¡ããæè¡ä»æ§>æ¸å¼2
http://media.line.me/howto/ja/
ãã§ãã©ãã«ãiOS7ã§ç»åå
±æããããã¨æã£ã¦ãããéããæ¹æ³ãè¦ã¤ããã
iOS7ã§ãç»åãLINEã§éããããã«ããæ¹æ³
http://www.appstars.jp/archive/75
ãããã®æ¹æ³ã§ããã¾ããããããã
åè¦å
«è¦ãã¦ãããã@koogawa ããããæãã¦ãããã
ãªãã¨JPEGã¯ãã¡ã§ãPNGãªããããã¨ãããã¨ã ã£ãã
ã³ã¼ããããã«æ®ãã¦ããã
- (void)shareImageViaLine:(UIImage *)image { UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; //[pasteboard setData:UIImageJPEGRepresentation(image, 1.0) forPasteboardType:@"public.jpeg"]; //âJPEGã§ã¯ã§ããªã模æ§ãPNGãªãOKã [pasteboard setData:UIImagePNGRepresentation(image) forPasteboardType:@"public.png"]; //PNGã§ï¼ï¼ï¼ NSString *urlString = [NSString stringWithFormat:@"line://msg/image/%@",pasteboard.name]; NSURL *url = [NSURL URLWithString:urlString]; [[UIApplication sharedApplication] openURL:url]; }
gist
https://gist.github.com/osmszk/9718995
â»æ³¨æäºé ï¼ãã®æ¹æ³ã¯éå ¬å¼ãªã®ã§ããã¤éããªãããã«ãªãããããã¾ããã