I created a new iPad SplitView project in Xcode and set the code to populate the TableView (in the RootView on the left) with data. Now I would like to configure the RootView to contain the DatePicker view along with the TableView, but I'm not sure how to do this. Since the RootViewController is by default a subclass of UITableViewController, I could not add the DatePicker view to it in IB (since you cannot add the DatePicker to the UITableView). The only way to figure out how to add a DatePicker to the “Left” RootView is to change the RootViewController from a subclass of UITableViewController to a subclass of UIViewController, then I can add a view to it that contains the DatePicker and TableView using IB. Questions ...
Many thanks for your help! Below is my current interface code for my RootViewController if this helps anyone.
@interface RootViewController : UITableViewController <NSFetchedResultsControllerDelegate> { DetailViewController *detailViewController; NSFetchedResultsController *fetchedResultsController; NSManagedObjectContext *managedObjectContext; } @property (nonatomic, retain) IBOutlet DetailViewController *detailViewController; @property (nonatomic, retain) NSFetchedResultsController *fetchedResultsController; @property (nonatomic, retain) NSManagedObjectContext *managedObjectContext; - (void)insertNewObject:(id)sender; @end
, , UITableViewController, , RootViewController UIViewController, UITableView * tableView , , , , UITAbleView nib UIView , tableView ( , , )... , , UITableView ( UITableViewCOntroller ), , , .
Source: https://habr.com/ru/post/1745340/More articles:boost version upgrade - c ++How to use default arguments in php - phpThe safest way to idle a delphi application to wait for a timer? - memory-managementBing search API using Jsonp does not work, invalid label - jsonHow to find out if your Unit Test Fixture is right? - language-agnosticHow do you know if your Unit Test is “the right size”? - language-agnosticHow do I take pairs from a list in python? - pythonКак изменить исходный HTML-страницы ASP.NET на PreRender? - asp.netHow to use NSPredicate for Key-Path values - objective-cIEnumerable, представляющий "остаток" последовательности IEnumerable - linked-listAll Articles