TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Nov 2016 |
Maintained by 811400344.
LXSocialManager is a opensource Social SDK for iOS.
- iOS 8.0+
- Xcode 8.1
1. Download all the files in the `LXSocialManager` subdirectory.
2. Add the source files to your Xcode project.
3. Link with required frameworks:
1. WeiXin
* SystemConfiguration.framework
* libz.dylib
* libsqlite3.0.dylib
* libc++.dylib
* Security.framework
* CoreTelephony.framework
* CFNetwork.framework
* Not Cocoapods : Other Linker Flags : -Objc -all_load
2. QQ
* Security.framework
* libiconv.dylib
* SystemConfiguration.framework
* CoreGraphics.Framework
* libsqlite3.dylib
* CoreTelephony.framework
* libstdc++.dylib
* libz.dylib
* Not Cocoapods : Other Linker Flags : -fobjc-arc
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[LXSocialManager setWXAppId:@"key" appSecret:@"secret" state:@"state"];
return YES;
}
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
return [LXSocialManager handleOpenURL:url];
}
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(nullable NSString *)sourceApplication annotation:(id)annotation {
return [LXSocialManager handleOpenURL:url];
}
if ([LXSocialManager isAppInstalled:LXSocialWX]) {
[LXSocialManager loginRequest:LXSocialWX
loginSuccess:^(NSString *openID, NSString *unionID, NSString *userNickname, NSString *userAvatarURL) {
} loginError:^(NSError *error) {
}];
}
**LXSocialManager is released under the MIT license. See LICENSE for details.**