CSNLINEOpener provides "LINE it!". Please read the Guidelines before use.
CSNLINEOpener
is simple class that sends text OR image to LINE.app. CSNLINEOpenerActivity
is subclass of UIActivity.
- iOS 6 or Later
- ARC
CocoaDocs for more infomation.
if ([CSNLINEOpener canOpenLINE]) {
[CSNLINEOpener openLINEAppWithText:someText];
} else {
[CSNLINEOpener openAppStore];
}
NSArray *applicationActivities = @[[[CSNLINEOpenerActivity alloc] initWithTitle:@"LINEで送る" icon:[UIImage imageNamed:@"icon"]]];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[text, icon]
applicationActivities:applicationActivities];
[self presentViewController:activityViewController animated:YES completion:NULL];
CSLINEOpener
overrides existing data in generalPasteboard
when sends image to LINE.app. cause we can't use named pasteboard to pass image from 3rd party application since iOS 7.
pod 'CSNLINEOpener', '~> 0.0'
MIT License