I'm a junior programmer fresh out of school, and just started working on my first Xamarin.iOS app. Things have been moving along fairly well until this issue came up. I am trying to to change view controllers from within another view controller.
I am not using storyboards, I am loading custom XIBs programatically.
Here's a snip from my AppDelegate which fires the first controller
window = new UIWindow(UIScreen.MainScreen.Bounds); appStartUpController = new AppStartUpController(); window.RootViewController = appStartUpController; window.MakeKeyAndVisible();
This works fine, and fires the appStartUpController. From here, I do some background work grabbing some data from an API call. I show a loading screen until the call is done and then attempt to load another view controller like so:
var controller = new CityPickerViewController(); UINavigationController navCont = new UINavigationController(); navCont.PushViewController(controller, false);
No exceptions are fired, and the next view will not load. Within the CityPickerViewController I placed break points on
ViewDidLoad() but they never get hit. I'm sure I'm missing something basic here, but have not been able to determine what that is. Any help would be appreciated.