LGSharing
iOS helper for easy sharing with email, message or social networks like facebook, twitter, google+ and vkontakte.
Installation
With source code
- Download repository, then add LGSharing directory to your project.
- Also you need to install libraries:
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/Friend-LGA/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
License
LGSharing is released under the MIT license. See LICENSE for details.