I have created a UIButton which is connected with the 'login' IBAction.
like this:
-(IBAction) login: (id)sender{
NSLog(@"ButtonClicked");
}
but now, I wired that button with the two UITextField's and named them username and password. For getting value I use 'takeStringValueFrom' but I don't understand how to get those values?
Tarun Kumar
20-Dec-2015Here, I am explaining your problems solution through our example.
I have also created a login form and declare two textfield IBOutlets and named them textFieldUserName, textFieldPassword. and hook them into the Interface Builder.
Now, if we want to get string values from that outlets, use this code: