Good day dear gurus. There is a question with which I can not give fret. Climbed a bunch of sites just did not find what I needed = (For this, do not criticize much.
I have
NSURL *url = [NSURL URLWithString:@"http://wot-news.com/ajax/load_stat?mdata=%@"];
After "mdata", I need to enter a value instead of "% @" , the user enters the text field in the XIB into the Text Field field and when you click on the Button , this URL is loaded. Then it parses, but it does not matter ...
Help it to implement, who can write the code, who knows something like that, share the link.
---------------------------- I will continue the tendency to write working code, after a successful test
Quite simply, I made IBAction attached it to a button.
-(IBAction)getInfo:(id)sender { NSString *urlText = [NSString stringWithFormat:@"http://wot-news.com/ajax/load_stat?mdata=%@", self.nick.text]; NSURL *url = [NSURL URLWithString:urlText]; //Конечно не забываем убирать клавиатуру, а то она за 15 тестов меня задолбала. [self.nick resignFirstResponder];
Indulge in! Thank you all for the help! PS do not forget to tie a button!