每當我的應用程序啓動時,我都會出現黑屏。沒有錯誤消息,我已將.pib文件中的主筆尖文件設置爲。這是我的一些代碼。iPhone在應用程序啓動時出現黑屏
AppDelegate.h
#import <UIKit/UIKit.h>
@class LoginController;
@interface ViiadAppDelegate : NSObject <UIApplicationDelegate> {
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet LoginController *viewController;
@end
AppDelegate.m
#import "AppDelegate.h"
#import "LoginController.h"
@implementation AppDelegate
@synthesize window=_window;
@synthesize viewController=_viewController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
}
在此先感謝。我是iPhone開發新手。
這是sp ** l **灰屏,而不是spash屏幕。 – Moshe