Latest 0.0.4
Homepage https://github.com/weilLove/LWWXTool
License MIT
Platforms ios 8.0
Dependencies WechatOpenSDK
Frameworks UIKit, Foundation
Authors

微信登录,注册,分享到朋友圈,支付等功能封装

调用:

向微信注册:

//向微信注册
+ (BOOL)lw_registerApp:(NSString *)appId enableMTA:(BOOL)enable;

是否允许打开微信(app打开微信)

//是否允许app打开微信
+ (BOOL)lw_handleOpenURL:(NSURL *)url;

是否安装了微信

//是否安装微信
+ (BOOL)lw_isWXInstalled;

是否支持微信

//是否支持微信
+ (BOOL)lw_isWXSupported;

登录注册:

+ (void)sendAuthRequest:(NSString *)scope state:(NSString *)state openId:(NSString *)openId controller:(UIViewController *)controller completionHandler:(LWWXToolCompletionHandler)completionHandler

分享到微信:

+ (void)weixinShare:(NSString *)shareTitle shareDesc:(NSString *)shareDesc shareImage:(UIImage *)shareImage shareLink:(NSString *)shareLink completionHandler:(LWWXToolCompletionHandler)completionHandler

分享到朋友圈:

+ (void)timelineShare:(NSString *)shareTitle shareDesc:(NSString *)shareDesc shareImage:(UIImage *)shareImage shareLink:(NSString *)shareLink completionHandler:(LWWXToolCompletionHandler)completionHandler

支付:

+ (void)startWxPay:(NSString *)partnertId prePayId:(NSString *)prePay_id sign:(NSString *)sign timestamp:(NSString *)timestamp nonceStr:(NSString *)nonceStr package:(NSString *)package appId:(NSString *)appId completionHandler:(LWWXToolCompletionHandler)completionHandler

Latest podspec

{
    "name": "LWWXTool",
    "version": "0.0.4",
    "summary": "u5faeu4fe1u5c0fu5de5u5177",
    "description": "u63d0u4f9bu5faeu4fe1u767bu5f55uff0cu6ce8u518cuff0cu652fu4ed8uff0cu5206u4eabu7b49u529fu80fd",
    "homepage": "https://github.com/weilLove/LWWXTool",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "weilLove": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/weilLove/LWWXTool.git",
        "tag": "0.0.4"
    },
    "source_files": [
        "LWWXTool/Classess",
        "LWWXTool/Classess/**/*.{h,m}"
    ],
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "dependencies": {
        "WechatOpenSDK": []
    }
}

Pin It on Pinterest

Share This