你好我有一个带按钮的MainViewController.xib,当我按下它时会显示一个放在AboutViewController中的图像,其中有一个名为about在MainViewcontroller.m中的方法,并在MainViewController.h中声明我显示代码:
- (IBAction)about{
AboutViewController *about = [[AboutViewController alloc] initWithNibName:nil bundle:nil];
[self presentViewController:about animated:YES completion:NULL];
}
在AboutViewController中我放置了
- (void)viewDidLoad
{
UIImageView *imagen1 = [[UIImageView alloc]
initWithImage:[UIImage imageNamed:@"Default.png"]];
[self.view addSubview:imagen1];`
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.}`
图像正确加载。但是当我想加载一个按钮,或者一个标签栏或其他任何东西时,应用程序崩溃了。
不知道如何加载标签栏:(
提前致谢