Skip to content

griffin-stewie/CSNLINEOpener

Repository files navigation

CSNLINEOpener

CocoaPods

Overview

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.

Requirements

  • iOS 6 or Later
  • ARC

Usage

CocoaDocs for more infomation.

CSNLineOpener

if ([CSNLINEOpener canOpenLINE]) {
    [CSNLINEOpener openLINEAppWithText:someText];
} else {
    [CSNLINEOpener openAppStore];
}

CSNLINEOpenerActivity

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];

Caution

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.

Install

pod 'CSNLINEOpener', '~> 0.0'

License

MIT License

About

Open LINE.app with Text OR Image By Public API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published