forum

Home / DeveloperSection / Forums / How to get value from text field on button click in iOS?

How to get value from text field on button click in iOS?

Jayden Bell 1662 19-Dec-2015

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?


Updated on 20-Dec-2015

Can you answer this question?


Answer

1 Answers

Liked By