我使用此代碼來設置背景圖片。唯一的問題是它涵蓋了我在XIB文件中插入的所有內容。我應該做些什麼來確保我的文本框,按鈕等也可見(在背景前)。謝謝你的幫助!如何正確插入背景圖片
// Setup the background
UIImageView *background = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background.png"]];
[self.view addSubview:background];
[background release];
謝謝,這工作完美。在第三行中,雖然有一個錯字。該行的開頭應該說「self.view」而不是「自我」。謝謝! –