in Education by
In my application I have a table view and the user is able to add and delete cells in that table view. When the user clicks on a cell that they have created, it gets pushed with a nav controller to a new view. In that new view, I have about 8-10 TextFields that the user can edit. My problem is, how would I get the viewcontroller to save the data the user inputs into the cell. I've gotten it to save, but the problem is that when I enter data in one cell, it adds it to every other cell since each cell goes to the same view. How can I save the data for each cell created? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
i hope this code help you this code is not for saving data this is selected table cell display each recode details in details view in table View .m file - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if(self.dvController == nil){ DetailsViewController *viewControoler = [[DetailsViewController alloc]initWithNibName:@"detailsViewController" bundle:[NSBundle mainBundle]]; self.dvController = viewControoler; [viewControoler release]; } DocumentNavController *docObjNew = [appdelegate.noteArray objectAtIndex:indexPath.row]; [docObjNew hydrateDetailViewData]; // dvcontroller.noteObj = docObjNew; //noteobj reference from in DetailsViewController.m file DocumentNavController *noteObj; dvcontroller.currentindex = indexPath.row; [self.navigationController pushViewController:self.dvController animated:YES]; self.dvController.title = [docObjNew noteTitle]; [self.dvController.noteTitelFiled setText:[docObjNew noteTitle]]; [self.dvController.notediscView setText:[docObjNew noteDisc]]; } in table view .h file @interface DocumentTableViewController : UITableViewController { UITableView *documenttableView; evernoteAppDelegate *appdelegate; UINavigationController *navControll; DetailsViewController *dvcontroller; DocumentNavController *docNavContro; //NSIndexPath *selectIndexPath; } @property (nonatomic, retain)DetailsViewController *dvController; @property (nonatomic, retain)DocumentNavController *docNavContro; @property (nonatomic, retain)UITableView *documenttableView; in DetailsViewController.h file UITextField *noteTitelFiled; UITextView *notediscView; DocumentNavController *noteObj; @property (nonatomic, retain)IBOutlet UITextField *noteTitelFiled; @property (nonatomic, retain)IBOutlet UITextView *notediscView; @property (nonatomic, retain)DocumentNavController *noteObj;

Related questions

0 votes
    I am working on wordpress with woocommerce and using WCK plugin for custom fields. I am creating products ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 18, 2022 in Education by JackTerrance
0 votes
    .rda extension used when saving data with function __________ (a) save() (b) save.image() (c) save and ... Operations of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Cost saving is possible in networking due to: (a)Data sharing (b) Software sharing (c) Both i and ii (d)None of these Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    I have a problem with table-layout:fixed and width of inner columns if their content wider than column. ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Aug 1, 2022 in Education by JackTerrance
0 votes
    I have the access to this DOM node in temp1.$el. And here is the content which the above variable ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 26, 2022 in Education by JackTerrance
0 votes
    I have the access to this DOM node in temp1.$el. And here is the content which the above variable ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 14, 2022 in Education by JackTerrance
0 votes
    I have the access to this DOM node in temp1.$el. And here is the content which the above variable ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
0 votes
    I'm trying to figure out how can I create a vertical gap between two elements that are located in ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 4, 2022 in Education by JackTerrance
0 votes
    key is used to move the cursor in the adjoining cell of a table Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    explain the concept of splitting and merging cell in a table Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    What is not true in context of HTML tag ? O Table cell changes its width automatically based on content O We can ... table border is o Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    explain the concept of splitting and merging cell in a table Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    I have a stored procedure in SQL 2005. The Stored Procedure is actually creating temporary tables in the ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 19, 2022 in Education by JackTerrance
...