新しい行を追加すると、現在、現在の日付をタイトルとして新しい行が追加されます。以下は私が持っているコードです。ユーザーが好きなタイトルを入力できるようにするには、「NSDate 日付」を何に変更すればよいですか?
(void)insertNewObject:(id)sender
{
if (!_objects) {
_objects = [[NSMutableArray alloc] init];
}
[_objects insertObject:[NSDate date] atIndex:0];
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[self.tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
}