⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 myexample.m

📁 iPhone development example: UIWindow and UIView
💻 M
字号:
#import "MyExample.h"int main(int argc, char **argv){    NSAutoreleasePool *autoreleasePool = [ [ NSAutoreleasePool alloc ] init ];    int returnCode = UIApplicationMain(argc, argv, [ MyApp class ]);    [ autoreleasePool release ];    return returnCode;}@implementation MyApp- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {    window = [ [ UIWindow alloc ] initWithContentRect:        [ UIHardware fullScreenApplicationContentRect ]    ];    CGRect windowRect = [ UIHardware fullScreenApplicationContentRect ];    windowRect.origin.x = windowRect.origin.y = 0.0f;    mainView = [ [ UIView alloc ] initWithFrame: windowRect ];    [ window setContentView: mainView ];    [ window orderFront: self ];    [ window makeKey: self ];    [ window _setHidden: NO ];}@end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -