Parse BaaS iOS LoginFields in Swift - .value should be changed to?

谁说我不能喝 提交于 2019-12-04 20:51:06

The right way that worked to me in the last ios 8.1 and xcode 6.1 and latest parse 1.5 was:

By example, if you want only username and password box, login and signup button and forget password:

logInController.fields = PFLogInFields.UsernameAndPassword | PFLogInFields.LogInButton | PFLogInFields.SignUpButton | PFLogInFields.PasswordForgotten

Same issue here. I've tried many solutions and the only working one I found was to pass the bit patterns directly:

logInController.fields = PFLogInFields(00000001 | 00000010 | 00000100 | 00001000 | 00010000)

In this way I was able to show all the fields.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!