CSNLINEOpener 0.0.4

CSNLINEOpener 0.0.4

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Nov 2016

Maintained by Unclaimed.



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