在Swift中解析BaaS iOS LoginFields - .value应该更改为? [英] Parse BaaS iOS LoginFields in Swift - .value should be changed to?

查看:139
本文介绍了在Swift中解析BaaS iOS LoginFields - .value应该更改为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Swift中使用Parse BaaS时,我们以前能够使用管道分隔符列出登录字段。添加到登录视图的字段列表中的每个值都需要有一个.value,以便Swift编译它。

When using the Parse BaaS with Swift, we used to be able to list out the login fields with a pipe delimiter. Each value that was added to the list of fields for the login view, needed to have a .value on it for Swift to compile it.

.value解决方案在Xcode 6 beta 4错误上不再有效:'PFLogInFields'没有名为'value'的成员

The ".value" solution is not working anymore on Xcode 6 beta 4 error : 'PFLogInFields' does not have a member named 'value'

是否有其他人看到此问题,或者有人知道是什么我们需要改变以解决这个问题吗?

Is anyone else seeing this issue, or does anyone know what we need to change to get around this?

谢谢。

推荐答案

在最后的ios 8.1和xcode 6.1以及最新的解析1.5中对我有用的正确方法是:

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

这篇关于在Swift中解析BaaS iOS LoginFields - .value应该更改为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆