Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Self-Destructing Message iPhone App Using Parse.com as a Backend and Adding Users Signing Up New Users: Part 2 (PFUser)

Signing Up New Users: Part 2 (PFUser) challenge error..

I can't find see any problem with the first simple part of this code challenge but still I am not able to proceed to the next step... "Bummer, make sure you set both username and password properties..."

Maybe some problem with code parsing on treehouse side? Or am I really stupid or blind as I can't see where is that error in my code? :)

SignupViewController.m
#import "SignupViewController.h"
#import <Parse/Parse.h>

@implementation SignupViewController

- (IBAction)signup:(id)sender {

NSString *username = self.usernameField.text;
NSString *password = self.passwordField.text;

}

@end

2 Answers

Stone Preston
Stone Preston
42,016 Points

the error states: make sure you set both username and password properties

you did not set the username and password properties, you created new NSString objects. set the properties by using self.username and self.password:

self.username = self.usernameField.text;
self.password = self.passwordField.text;

aaaaaa, that makes sense. Thank you