Skip to content

Commit 3299b67

Browse files
author
Jayson Ng
committed
Update login / logout
Update to swift and ObjC login section to change currentUser() to current()
1 parent 95798a2 commit 3299b67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_includes/ios/users.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Whenever you use any signup or login methods, the user is cached on disk. You ca
117117

118118
<div class="language-toggle" markdown="1">
119119
```objective_c
120-
PFUser *currentUser = [PFUser currentUser];
120+
PFUser *currentUser = [PFUser current];
121121
if (currentUser) {
122122
// do stuff with the user
123123
} else {
@@ -139,11 +139,11 @@ You can clear the current user by logging them out:
139139
<div class="language-toggle" markdown="1">
140140
```objective_c
141141
[PFUser logOut];
142-
PFUser *currentUser = [PFUser currentUser]; // this will now be nil
142+
PFUser *currentUser = [PFUser current]; // this will now be nil
143143
```
144144
```swift
145145
PFUser.logOut()
146-
var currentUser = PFUser.currentUser() // this will now be nil
146+
var currentUser = PFUser.current() // this will now be nil
147147
```
148148
</div>
149149

0 commit comments

Comments
 (0)