请注意,我正在尝试学习 iphone,对于这个问题,我想不出任何解决方案。
我创建了一个名为 Loading 的空视图。我已经用一些图像填充了它的 Loading.xib。现在这是我正在使用的代码
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
Loading *firstView = [[Loading alloc]init];
self.navigationController = [[UINavigationController alloc]init];
self.navigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent;
[self.navigationController pushViewController:firstView animated:YES];
// Override point for customization after application launch.
[self.window addSubview:self.navigationController.view];
[window makeKeyAndVisible];
return YES;
}
问题是,当我运行代码时,它只显示空白屏幕。
如何加载加载屏幕。欢迎任何推荐的教程链接
@implementation Loading
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
最好的祝福