Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ItsMeSri

macrumors newbie
Original poster
Aug 10, 2011
1
0
I am new to programming. I am facing problem with password field. its value is showing 'nil' in debug.

here is the code.

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
 

KoolStar

macrumors demi-god
Oct 16, 2006
825
9
Kentucky
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.