myexample.m
来自「iPhone development example: UIWindow and」· M 代码 · 共 29 行
M
29 行
#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 + =
减小字号Ctrl + -
显示快捷键?