How can I call the default insertNewObject method? I have created a custom button in the storyboard and linked it to an action called addDate, but I don't quite understand what parameter the insertNewObject takes in
- (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:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
}
- (IBAction)addDate:(id)sender {
// have to call insertNewObject
}
 
    