Initializer element is not a compile-time constant error
问题 I am implementing IIViewDeckController into my app. When I am trying to replace the IBAccount to go to that screen I get an error: Initializer element is not a compile time constant The first section of the code is what I have now, and the UIViewController is from the IIViewDeckController that I want to use to load the FirstAccountViewController over. -(IBAction)account{ FirstAccountViewController* ab=[[FirstAccountViewController alloc] init]; [self.navigationController pushViewController:ab