password value showing 'nil' after hitting button?

Discussion in 'iPhone/iPad Programming' started by ItsMeSri, Aug 10, 2011.

  1. macrumors newbie

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

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #2
    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