I'm trying to incorporate XLMailBox, Custom ViewController as a parent viewController that can switch between different childViewController using a TabBar.
I'm loading a Custom UITableViewController
called SwipeTableViewController as a childViewController within a parentviewController
I use this code to load the ParentViewController in AppDelegate:
It then configures the cell using the CustomTableViewCell class and populates with data from RND_Patientsmutablearray which it loads initially in the ViewDidLoad.
Now my problem is that when I load the SwipeTableViewController as a childViewController, the cells are empty and are not populated with data, although according to NSLog the data was loaded succesfully.
When I load directly the SwipeTableViewController as part of the RootViewController without using the XLMailBox custom navigation controller, the table view loads just fine and has the appropriate cells and the appropriate data. But whenever I load it as a childviewcontroller of XLSwipeNavigationController, it does not show any data. I know the data source is loaded correctly, because if I set cell.textLabel = patients.data.ptName; it loads the cell textLabel correctly. The problem is I have a custom cell with three different kind of labels, and when I set those labels to the data in my NSMutableArray they do not show up. This leads me to believe that the UITableView is loaded as default and my custom UITableView and CustomTableViewCell are not loaded at all.
I do not understand the discrepancy between these two views. All my code seems correct, but in my first example, the CustomTableViewCell does not load and in the second it loads. Any ideas on how can I fix this?
I'm trying to incorporate
XLMailBox
, Custom ViewController as a parent viewController that can switch between different childViewController using a TabBar.I'm loading a Custom
UITableViewController
calledSwipeTableViewController
as a childViewController within a parentviewController I use this code to load theParentViewController
inAppDelegate
:}
The SwipeTableViewController.m loads the table view as follows:
It then configures the cell using the
CustomTableViewCell
class and populates with data fromRND_Patients
mutablearray which it loads initially in the ViewDidLoad. Now my problem is that when I load theSwipeTableViewController
as a childViewController, the cells are empty and are not populated with data, although according to NSLog the data was loaded succesfully.When I load directly the
SwipeTableViewController
as part of theRootViewController
without using theXLMailBox
custom navigation controller, the table view loads just fine and has the appropriate cells and the appropriate data. But whenever I load it as a childviewcontroller of XLSwipeNavigationController, it does not show any data. I know the data source is loaded correctly, because if I set cell.textLabel = patients.data.ptName; it loads the cell textLabel correctly. The problem is I have a custom cell with three different kind of labels, and when I set those labels to the data in my NSMutableArray they do not show up. This leads me to believe that the UITableView is loaded as default and my custom UITableView and CustomTableViewCell are not loaded at all.I do not understand the discrepancy between these two views. All my code seems correct, but in my first example, the
CustomTableViewCell
does not load and in the second it loads. Any ideas on how can I fix this?