學習過程中遇到一些問題,現在記錄下來,以后忘記以便翻看。
創建工程的步驟:
創建視圖的步驟:
創建視圖
UIView * redView = [[UIView alloc] initWithFrame:CGRectMake(100,100,100,100)];
配置視圖
redView.backgroundColor = [UIColor redColor];
加載視圖
[_window addSubview:redView];
內存管理
[redView release];
新聞熱點
疑難解答