Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I NSString format this correctly?
    text
    copied!<p>Ok, it's a yellow bang error that says "Data argument not used by format string"</p> <p>in the .h:</p> <pre><code>@property (strong, nonatomic) IBOutlet UITextField *UserFirstName; @property (strong, nonatomic) IBOutlet UITextField *UserLastName; @property (strong, nonatomic) IBOutlet UITextField *UserEmail; @property (strong, nonatomic) IBOutlet UITextField *UserUser; @property (strong, nonatomic) IBOutlet UITextField *UserPassword; @property (strong, nonatomic) IBOutlet UITextField *UserConfirmPassword; @property (nonatomic,retain) NSString *userFirstNameEntry; @property (nonatomic,retain) NSString *userLastNameEntry; @property (nonatomic,retain) NSString *emailEntry; @property (nonatomic,retain) NSString *userEntry; @property (nonatomic,retain) NSString *userPasswordEntry; @property (nonatomic,retain) NSString *userConfirmPasswordEntry; - (IBAction)userCreate:(UIButton *)sender; @end </code></pre> <p>And in the .m</p> <pre><code>- (IBAction)userCreate:(UIButton *)sender { _userFirstNameEntry = UserFirstName.text; _userLastNameEntry = UserLastName.text; _emailEntry = UserEmail.text; _userEntry = UserUser.text; _userPasswordEntry = UserPassword.text; _userConfirmPasswordEntry = UserConfirmPassword.text; NSString *postData = [NSString stringWithFormat:@"FirstName=%@&amp;LastName=%@&amp;Email=%@&amp;User=%@&amp;Pass=%@&amp;ConfirmPass", _userFirstNameEntry, _userLastNameEntry, _emailEntry, _userEntry, _userPasswordEntry, _userConfirmPasswordEntry]; </code></pre> <p>I believe the error is with the NSString postData stringWithFormat, but I can't find any correct sources that lead me to a correct format, also I suppose the problem could me my method of setting the NSString's.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload