Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Aug 10, 2011, 02:38 PM   #1
macrumors newbie
Join Date: Aug 2011
password value showing 'nil' after hitting button?

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
ItsMeSri is offline   0 Reply With Quote
Old Aug 15, 2011, 04:55 AM   #2
macrumors Demi-God
KoolStar's Avatar
Join Date: Oct 2006
Location: Kentucky
Send a message via AIM to KoolStar Send a message via Skype™ to KoolStar
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.
"Innovation distinguishes between a leader and a follower." : S.J.
KoolStar is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Safari favorites button showing different site? Legion103 iPhone Tips, Help and Troubleshooting 0 Apr 30, 2014 08:55 AM
Nil value in variable when it should be non-nil moonman239 iPhone/iPad Programming 17 Apr 21, 2014 05:13 PM
iPad: Icon still shakes after hitting home or hold button kulimer iPad 12 Apr 16, 2013 03:54 PM
Screen shot just from hitting the home button ? iapplelove iPhone 1 Feb 17, 2013 04:02 PM
Configure screen after hitting the home button means ipad is erased right? Crabnbass iPad 4 Oct 25, 2012 10:07 AM

Forum Jump

All times are GMT -5. The time now is 12:42 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC