Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LGSharing

iOS helper for easy sharing with email, message or social networks like facebook, twitter, google+ and vkontakte.

Installation

With source code

With CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the "Get Started" section for more details.

Podfile

platform :ios, '6.0'
pod 'LGSharing', :git => 'https://github.com/LGLibs/LGSharing.git'

Usage

First read "Get started" guides of:

In the AppDelegate.m import header file and call the LGSharing URL handler from your app delegate's URL handler

#import "LGSharing.h"

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
    [LGSharing application:application openURL:url sourceApplication:sourceApplication annotation:annotation];

    return YES;
}

In the source files where you need to use the library, import the header file:

#import "LGSharing.h"

Initialization

+ (instancetype)sharedManagerWithNavigationController:(UINavigationController *)navigationController
                                              vkAppId:(NSString *)vkAppId               // pass nil if you don't want to use it
                                   googlePlusClientId:(NSString *)googlePlusClientId    // pass nil if you don't want to use it
                                 googlePlusDeepLinkId:(NSString *)googlePlusDeepLinkId; // pass nil if you don't want to use it

More

For more details see LGSharing.h

Repos / Mirrors

License

Copyright (c) 2015 Grigorii Lutkov <grigorii@lutkov.dev>

Licensed under the MIT License

About

iOS helper for easy sharing with email, message or social networks like facebook, twitter, google+ and vkontakte

Resources

Stars

15 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages