I have a UIViewController class SurveyPanel that inherits from UIViewController like so
SurveyPanel : UIViewController
Then I have another UIViewController class called AnnouncementPanel that inherits from SurveyPanel
AnnouncementPanel : SurveyPanel
I need AnnouncementPanel to display both buttons from SurveyPanel and buttons specific to AnnouncementPanel, but currently it will only display components within SurveyPanel.
Could it be the way I load the controllers in my AppDelegate.cs?
Currently I’m doing:
window = new UIWindow(UIScreen.MainScreenBounds);
AnnouncementPanel viewController = new AnnouncementPanel();
window.RootViewController = viewController;
window.MakeKeyAndVisible();
return true;
Do you create UI in views by loading XIB files or by code?
If “by loading XIB files”, it’s a bit messy to use prepared UI with UIViewController inheritance.
If “by code”, please double check that you:
Example, which I use for inheritance of (UITableViewCells) views: