From 5b6993a098df89719fb1a065a1aedb1b3e6aa77e Mon Sep 17 00:00:00 2001 From: Richard Lynskey Date: Sun, 21 Aug 2016 09:35:00 -0500 Subject: [PATCH] Fix Swift sample for SignUpViewController fields The swift example was actually the Objective C sample. Modified it to be an array and changed the wording below to match the wording in the LogInViewController sample above. --- _includes/ios/user-interface.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/_includes/ios/user-interface.md b/_includes/ios/user-interface.md index bfd7e21ea..7d5f7e0e0 100644 --- a/_includes/ios/user-interface.md +++ b/_includes/ios/user-interface.md @@ -255,14 +255,14 @@ signUpController.fields = (PFSignUpFieldsUsernameAndPassword | PFSignUpFieldsDismissButton);

-signUpController.fields = (PFSignUpFields.UsernameAndPassword
-                          | PFSignUpFields.SignUpButton
-                          | PFSignUpFields.Email
-                          | PFSignUpFields.Additional
-                          | PFSignUpFields.DismissButton)
+signUpController.fields = [PFSignUpFields.UsernameAndPassword,
+                           PFSignUpFields.SignUpButton,
+                           PFSignUpFields.Email,
+                           PFSignUpFields.Additional,
+                           PFSignUpFields.DismissButton]
 
-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 of 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. ### Responding to Sign Up Success, Failure or Cancellation