TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jul 2017 |
Maintained by xqwang.
Depends on: | |
Masonry | >= 0 |
AFNetworking | ~> 3.0 |
IQKeyboardManager | >= 0 |
WebViewJavascriptBridge | ~> 5.0 |
MBProgressHUD | >= 0 |
优点账户系统,能够提供用户注册、登陆、绑定手机、查看信息等功能。
+(void)initWithAppId:(NSString*)appId openKey:(NSString*)openkey;
+(void)setWindowType:(WindowType)type; //设置登陆框类型,Activity表示全屏模式, Dialog表示对话框模式,默认为对话框
+(void)autoRotate:(BOOL)enable; //对话框模式下是否横坚屏切换,默认为NO
+(void)setChannelId:(NSString*)channelId; //设置应用发布渠道ID
+(void)showWindow; //用于展示登陆框
+(void)logout; //当前登陆用户使出
需要开发者实现YDAccountDelegate协议,示例代码如下
-(void)someFunction
{
[YDAccount initWithAppId:@"xxxx"];
[YDAccount setWindowType:Dialog];
[YDAccount autoRotate:NO];
[YDAccount setDeletage:self];
[YDAccount setChannelId:@"AppStore"];
}
-(void)reLogin
{
[YDAccount logout];
[YDAccount showWindow];
}
-(void)accountLogin:(YDAccountModel*)model
{
...
}
-(void)accountRegist:(YDAccountModel*)model
{
...
}