View Full Version : password value showing 'nil' after hitting button?

Aug 10, 2011, 02:38 PM
I am new to programming. I am facing problem with password field. its value is showing 'nil' in debug.

here is the code.

-(void) login: (NSString*)userName withPassword:(NSString*)password {
// do the login...on the result, change to the advanced search controller view..
[self.model loginUser:userName password:password];

in debug statement userName object type is showing "NSCFString" and password object type is showing "NSString" only.

in Root.plist

It is defined like this

Item 5 (Text Field - Password)
Text Field Is Secure - Boolean - YES
Identifier - String - password
Title - String - Password
Type - String - Text Field

Aug 15, 2011, 04:55 AM
What does the code that is calling the login method look like, my guess is that you are not calling the text property of the login textfield.