Skip to content

Commit 6cb40fd

Browse files
authored
Ios update signup ui (#595)
* Update user-interface.md * Update user-interface.md
1 parent e6aacbd commit 6cb40fd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

_includes/ios/user-interface.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ signUpController.delegate = self;
244244
```swift
245245
let signUpController = PFSignUpViewController()
246246
signUpController.delegate = self
247-
self.presentViewController(signUpController, animated: true, completion: nil)
247+
self.present(signUpController, animated: true, completion: nil)
248248
```
249249
</div>
250250

@@ -272,15 +272,15 @@ signUpController.fields = (PFSignUpFieldsUsernameAndPassword
272272
| PFSignUpFieldsDismissButton);
273273
```
274274
```swift
275-
signUpController.fields = (PFSignUpFields.UsernameAndPassword
276-
| PFSignUpFields.SignUpButton
277-
| PFSignUpFields.Email
278-
| PFSignUpFields.Additional
279-
| PFSignUpFields.DismissButton)
275+
signUpController.fields = [PFSignUpFields.usernameAndPassword,
276+
PFSignUpFields.signUpButton,
277+
PFSignUpFields.email,
278+
PFSignUpFields.additional,
279+
PFSignUpFields.dismissButton]
280280
```
281281
</div>
282282

283-
Essentially, you use the bitwise or operator (`|`) to chain up all the options you want to include in the sign up screen, and assign the value to `fields`. Similarly, you can turn off any field by omitting it in the assignment to fields.
283+
Essentially, you create an array (in Swift), or use the bitwise or operator (for objective-c), to chain all of the options you want to include in the sign up screen, and assign the value to `fields`. Similarly, you can turn off any field by omitting it in the assignment to fields.
284284

285285
### Responding to Sign Up Success, Failure or Cancellation
286286

0 commit comments

Comments
 (0)