每当我的应用程序启动时,屏幕就会变黑。没有错误消息,我已经在.plist文件中设置了我的主要nib文件。这是一些我的代码。
AppDelegate.h
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开发的新手。