I have created a window-based application, and I have created a separate UTT Viewer file named "Home ViUI Controller", which is now There is a basic table. In the MainWindow.xib file, I put a UIView in the bottom half of the screen and I want to place the Homeview Controller tableview in the name of the "conventions" in this newly added UIView.
Any suggestions about how to push this file?
First of all, usually your primary first view is by a visual controller that is loaded by the UIApplication object. . The owner of the main Windo Nibb is UIApplication, so you probably do not want to meet with the main window nib. Instead, you want to mess with the view of the View View Controller by the main Vinh Neb. If you see the footage shown in the IB for MainWindow.nib, then it should say which view of the controller is loading it.
So, in view of the view controller for the MainWindow Nib loads, this is where you want to give the location to your UITableView For the purposes of this explanation, I see this view controller, MucksViewController and associated nib Will call, MucksView.nib
I think what I can do, drag and drop a UITableView in the view for MucksView. Nib Tell it in the lower half of the screen, as you said. Attach the UITableView to an IBOutlet property in the MucksViewController header file. Next, drag and drop a UIViewController object to the MucksView.nib in the main window. In the MucksViewController's class file, the owner of this UIViewController object will be able to create your HomeViewController class and also attach in the MucksViewController's header file in an IBOutlet property of the HomeViewController.
Now, perhaps in the viewDidLoad method, the HomeViewController data object as a program is the source and representative of the UITableView object but, I am thinking, do you really need a Home VIPU controller? It will be just cleaner to make MucksViewController data source and representative.
I hope this helps and is not even confused.
Comments
Post a Comment