iOS helper for easy sharing with email, message or social networks like facebook, twitter, google+ and vkontakte.
- Download repository, then add LGSharing directory to your project.
- Also you need to install libraries:
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.
platform :ios, '6.0'
pod 'LGSharing', :git => 'https://github.com/LGLibs/LGSharing.git'
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"+ (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 itFor more details see LGSharing.h
Copyright (c) 2015 Grigorii Lutkov <grigorii@lutkov.dev>
Licensed under the MIT License