Users Pricing

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 2019 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?


Jayden Bell

Other


1 Answers