Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Get the value(label) from the TextField inside the custom cell of a table View to post on the URL
    text
    copied!<p>I want my iOS app to pass to a URL the text the user types. The relevant code is pasted below. When I run the app, the text does not get assigned any value. It stays as null.</p> <p>I am new to iOS programming and am probably missing something obvious here. Any help/pointers will be appreciated.</p> <p>Mac OS Version : 10.6.8 (64 bit) Xcode Version : 3.2.3</p> <p>In the snapshop.. "I have created a Table View and placed custom cell inside each row of a table. TextField is inside the custom cell view. Post is a button next to the textField which is a done Button. If I click that button, the text we are entering in the textField should post on URL which i have specified in my code snippet."</p> <p>NOTE: The text is like a comment and posting this comment that should post on particular image in that cell.</p> <p>I have copied the code snippet below. I have also attached an image to explain.</p> <pre><code>-(IBAction)postAction:(id)sender { int index=[sender tag]; homecell *cell = [[homecell alloc] init]; UITextField *txt_c =(UITextField *)[cell.txt_comment viewWithTag:index]; NSLog(@"jj %@",txt_c); gen_data *ut1=[[gen_data alloc]init]; gen_data *ut=[gen_data getInstance]; .... } </code></pre> <p>![In the snapshop.. "I have created a Table View and placed custom cell inside each row of a table. TextField is inside the custom cell view. Post is a button next to the textField which is a done Button. If I click that button, the text we are entering in the textField should post on URL which i have specified in my code snippet."![][1]<a href="http://i.stack.imgur.com/1tnpQ.png" rel="nofollow">1</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload