Hello everyone
I have made a page in uitableview and there is a navigationbar which holds a button for adding a new record and this is working. I want to know how can I add an Item through editing instead of hard coded item or string. I want to know what should I do in the funcyion which is responsible for adding new string or item?
Here is the code of that function:
Code:
-(void)addNew
{
[array addObject:@"Hello"];
[self.tableView reloadData];
}
Actually I have tried searching this a lot on the web but could'nt found any solution.
I'll be thankful.