Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions _includes/ios/user-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ signUpController.delegate = self;
```swift
let signUpController = PFSignUpViewController()
signUpController.delegate = self
self.presentViewController(signUpController, animated: true, completion: nil)
self.present(signUpController, animated: true, completion: nil)
```
</div>

Expand Down Expand Up @@ -272,15 +272,15 @@ signUpController.fields = (PFSignUpFieldsUsernameAndPassword
| PFSignUpFieldsDismissButton);
```
```swift
signUpController.fields = (PFSignUpFields.UsernameAndPassword
| PFSignUpFields.SignUpButton
| PFSignUpFields.Email
| PFSignUpFields.Additional
| PFSignUpFields.DismissButton)
signUpController.fields = [PFSignUpFields.usernameAndPassword,
PFSignUpFields.signUpButton,
PFSignUpFields.email,
PFSignUpFields.additional,
PFSignUpFields.dismissButton]
```
</div>

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.
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.

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

Expand Down
4 changes: 2 additions & 2 deletions assets/js/bundle.js

Large diffs are not rendered by default.