Skip to content

Using the old snippet with NSError errors out. #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 18, 2020
Merged
6 changes: 3 additions & 3 deletions _includes/ios/users.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ Of course, after you allow users to sign up, you need to let them log in to thei
}];
```
```swift
PFUser.logInWithUsernameInBackground("myname", password:"mypass") {
(user: PFUser?, error: NSError?) -> Void in
PFUser.logInWithUsername(inBackground:"myname", password:"mypass") {
(user: PFUser?, error: Error?) -> Void in
if user != nil {
// Do stuff after successful login.
} else {
Expand Down Expand Up @@ -125,7 +125,7 @@ if (currentUser) {
}
```
```swift
var currentUser = PFUser.currentUser()
var currentUser = PFUser.current()
if currentUser != nil {
// Do stuff with the user
} else {
Expand Down