Hi All,
I am writing an application suitable to Maintenance Planning.
The application is for the iPad (Only) and using the latest XCode 4.3.3 and StoryBoards.
In the past my applications have only had a single UITableView for each ViewController, so setting delegates and datasources or even control Row Height and other parameters reasonably straight forward.
Now, there is a need to have a ViewController that contains two TableViews as shown in the attached file.
As you can see I have placed the GUI TableViews onto the ViewController and have not placed them there programatically.
To gain access to the Tables parameters and properties I have declared the UITableView in the Header for the ViewController:
After Synchronising I can then set a number of parameters like rowHeight, numberOfRowsInSection:
But I am not sure how to access each tables cells properties. With a single table one would use:
and all the other various methods associated with the cell.
So, how is this best done??
Pete
I am writing an application suitable to Maintenance Planning.
The application is for the iPad (Only) and using the latest XCode 4.3.3 and StoryBoards.
In the past my applications have only had a single UITableView for each ViewController, so setting delegates and datasources or even control Row Height and other parameters reasonably straight forward.
Now, there is a need to have a ViewController that contains two TableViews as shown in the attached file.
As you can see I have placed the GUI TableViews onto the ViewController and have not placed them there programatically.
To gain access to the Tables parameters and properties I have declared the UITableView in the Header for the ViewController:
Code:
@interface VehicleViewController : UIViewController {
UITableView *listVehicle;
UITableView *listMaintenance;
}
@property (nonatomic, retain) IBOutlet UITableView *listVehicle;
@property (nonatomic, retain) IBOutlet UITableView * listMaintenance;
...
After Synchronising I can then set a number of parameters like rowHeight, numberOfRowsInSection:
But I am not sure how to access each tables cells properties. With a single table one would use:
Code:
(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @Cell;
}
and all the other various methods associated with the cell.
So, how is this best done??
Pete