I have a table view in that i am showing an text fields now my problem is i want to read the data from those text field i am able to get the value but i even want to know its from which text box i want the index of the text box
you can use UITabeViewCell's index... it would be same... you can get it
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSUInteger row = [indexPath row];
//row is your index
hi ..mihir... actually i wannna get the value from textfield. it doen't go didSelectRowAtIndexPath..and also want the index of that particular textfield.
Textfields within a tableviewcell do not have index values because they are not part of the table itself but are merely ordinary subviews of the tableviewcell's content view.
Therefore, you access them just like you would any subview. The tableviewcell's content view is the textfields superview.
If you use one of the standard tableviewcell styles, then you can easily access them by name e.g. myTableViewCell.displayLabel.text
. If you have custom cell class you can make references the textfields properties of the class and access them by property name.
My problem is i have three cell within that i have each textfield now i want the user is clicking in which textbox This method textFieldDidEndEditing gives me the value which user is inputting but i dont get any tag of the textfield