When you press 'save data', add content that you want to display into the your_array
that you are using to display the tableview
.
[your_array addObject:your_textfield_string];
After that reload the table again using [tableview reloadData]
:
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[tableview reloadData];
dispatch_async(dispatch_get_main_queue(), ^{
////TO SCROLL THE TABLE TO NEWLY ADDED ROW
int lastRowNumber = [tableview numberOfRowsInSection:0] - 1;
NSIndexPath* ip = [NSIndexPath indexPathForRow:lastRowNumber inSection:0];
[tableview scrollToRowAtIndexPath:ip atScrollPosition:UITableViewScrollPositionTop animated:NO];
});
});