- (void)viewDidLoad{
for (int i = 1; i <= 4; i++)
{
playButton=[[UIButton alloc]initWithFrame:CGRectMake(curLocX,1.0,45,kScrollObjHeight)];
[playButton setBackgroundImage:[UIImage imageNamed:@"Play.png"] forState:UIControlStateNormal];
[playButton addTarget:self action:@selector(playClicked) forControlEvents:UIControlEventTouchUpInside];
curLocX+=100;
}}
我釋放爲playButton在viewDidUnload和dealloc的 1.I創造了四個按鍵,但我只公佈一次的正確或錯誤 2.我已經發布了viewDidUnload和其dealloc的正確或錯誤 提前感謝您的寶貴建議 Suresh.M
感謝您的寶貴答覆。在它之前,我添加了子視圖。問題只是分配。 – suresh