我正在实施IIViewDeckController
到我的应用程序中。
当我尝试替换 IBAccount 以转到该屏幕时,出现错误:
Initializer 元素不是编译时常量
代码的第一部分是我现在拥有的,并且UIViewController
来自IIViewDeckController
我想用来加载的FirstAccountViewController
。
-(IBAction)account{
FirstAccountViewController* ab=[[FirstAccountViewController alloc] init];
[self.navigationController pushViewController:ab animated:YES];
UIViewController* leftController = [[UIViewController alloc] init];
}
UIViewController* leftController = [[FirstAccountViewController alloc] init];
IIViewDeckController* deckController = [[IIViewDeckController alloc] initWithCenterViewController:self.centerController leftViewController:leftController
rightViewController:rightController];