If I have a text field tag, how can I select a text field value in iPhone sdk
you should be fine with something like (assuming TextField is a self.view subhead):
NSString *text = [(UITextField *)[self.view viewWithTag:THE_TAG] text];
NSString * text = [(UITextField *) [self.view viewWithTag: tag] text];
Try below
UITextField *textField = (UITextField*)[self.view viewWithTag:tag_Number]; NSString* textString=[textField text]; //Use textString further
Using:
UITextField *textField = (UITextField*)[self.view viewWithTag:100]; NSLog(@"%@",textField.text);
You need to replace 100 with your own tag.
Source: https://habr.com/ru/post/921940/More articles:Cannot set JSP as welcome file in GAE guestbook example - javaSilk block color changing text - androidFind closest list with BeautifullSoup (python) - pythonConvert C ++ string variable to long - c ++Android NFC: tag lost when APDU command sent to smart card - androidAndroid library / SDK / API for iOS, for example fileviewer - androidIntersect list returning null - listSending data from the ganglia to graphite - graphiteHow to work with NopCommerce MVC as a team - asp.net-mvcHow to make a read-only file? - c #All Articles