Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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