password value showing 'nil' after hitting button?

Discussion in 'iOS Programming' started by ItsMeSri, Aug 10, 2011.

  1. macrumors newbie

    Aug 10, 2011
    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
  2. macrumors demi-god


    Oct 16, 2006
    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.

Share This Page