ios - TextField text not being added to mutable array -
i using textfield user enter username , password signup , store in array. when log array shows null. code
user = self.username.text; userpassword = self.userpass.text; loginpageviewcontroller *loginpage; [loginpage.registeredusernames addobject:user]; [loginpage.registeredpassword addobject:userpassword]; nslog(@"%@", loginpage.registeredusernames); nslog(@"%@", loginpage.registeredpassword);
please help
loginpage variable declared, not instanciated object.
means nil, send message loginpage.registeredusernames nothing happens because no object exist handle message.
Comments
Post a Comment