Demo entry 6636815

oc

   

Submitted by anonymous on Aug 29, 2017 at 10:01
Language: Objective-C. Code size: 394 Bytes.

    // 配置用户信息
    [User user].firstName = @"";
    [User user].lastName = @"";
    [User user].zone = @"";
    [User user].phone = @"";
    [User user].email = @"";
    [User user].password = @"";
    
    // 用户注册
    [[User user] registered:^{
        // 注册成功,在这里可以获取用户的相关信息
    } failed:^(NSString *msg) {
        // 注册失败
    } error:^(NSError *err) {
        // 请求出现错误
    }];

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).