Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift中Parse的查询_Swift_Parse Platform - Fatal编程技术网

Swift中Parse的查询

Swift中Parse的查询,swift,parse-platform,Swift,Parse Platform,是否有可能实现以下目标 if fieldDeleteAccountPassword.text == PFUser.currentUser()?.password! { println("PASSWORD MATCH") PFUser.currentUser()?.deleteInBackground() } else { println("PASSWORD NOT MATCH") } 目前,我用PFUs

是否有可能实现以下目标

    if fieldDeleteAccountPassword.text == PFUser.currentUser()?.password! {

        println("PASSWORD MATCH")
        PFUser.currentUser()?.deleteInBackground()

    }
    else
    {
        println("PASSWORD NOT MATCH")
    }

目前,我用
PFUser.currentUser()?.password得到的一切为零。我想这应该是可能的,否则为什么要在PFUser不可访问的情况下添加.password呢?

不,您无法读取用户密码。你只能给它写信

如果要检查字符串是否与用户密码相同,请尝试将其登录,如果错误,则会出现错误