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
Marc Ft
18,065 PointsSelf-Destructing Messaging App - Stage 2 Code Challenge Help Please!
Hi,
I am working on the Signing Up New Users Part 2 - PFUser Code Challenge.
Could you please help me find my mistake. The error message says: Bummer! Make sure you set both the 'username' and 'password' properties!
#import "SignupViewController.h"
#import <Parse/Parse.h>
@implementation SignupViewController
- (IBAction)signup:(id)sender {
NSString *username = self.usernameField.text; //this is my code
NSString *password = self.passwordField.text; //this is my code
}
@end
Thank you, Marc
3 Answers
Alexander Batalov
21,887 PointsSeems like you are declaring new properties username and password, pretty sure they are already exists and all you need is just assign new value, try:
self.username
Hope it helps :) feel free to contact me @Alexbtlv
Marc Ft
18,065 PointsThank you!
Addison Francisco
9,561 PointsThis confused me at first too. You are using existing properties. Looks like this.
#import "SignupViewController.h"
#import <Parse/Parse.h>
@implementation SignupViewController
- (IBAction)signup:(id)sender {
self.username = self.usernameField.text;
self.password = self.passwordField.text;
}
@end