测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布最新发布 | 2017年7月 |
由xqwang维护。
依赖 | |
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
{
...
}