2016-07-17 41 views
1

我是新來Cloudmine,並希望與下面的鍵值對如何在cloudmine中創建自定義登錄類?

{ 
    "email" : "" 
    "password" : "" 
    "role" : "customer/merchant" 
    "platform" : "android/ios" 
} 

但可用類CMUser創建從我的iOS應用程序的新用戶,只允許以下鍵值對

{ 
"email": "" 
"password": "" 
"username" : "" 
} 

https://cloudmine.io/docs/#/ios#create-user

,並允許我創建一個用戶與

CMUser *user = [[CMUser alloc] initWithEmail:@"userName" andPassword:@"password"]; 

如果有人能指導我如何實現這一目標,我會非常感激。

回答

0

您不需要在cloudmine中爲用戶創建自定義類,而應該擴展CMUser類,然後使用user.saveProfile()方法保存其他屬性。

請參閱雲文檔

相關問題