xcode4.2下创建MainWindow
1、创建Empty Application工程;注意创建时的Class Prefix类的前定义
2、new File/User Interface/Window,定义为MainWindow.xib
3、打开MainWindow.xib,修改File's Owner为UIApplication
4、从Libaray拖放一个Object对象,并且修改class为AppDelegate
5、在AppDelegate.h中修改子对象window为IBOutlet
6、将File's Owner的输出口delegate连接到新添加的对象AppDelegate
7、然后将AppDelegate的输出口window连接到window对象
8、选择项目文件的Targets的Main Interface为MainWindow