UIImage *image = [[UIImage alloc] initWithContentsOfFile:@"popup.png"];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
[self.view addSubview:imageView];
[image release];
[imageView release];
該代碼位於UIViewcontroller對象內。它編譯得很好,但運行時,子視圖看起來不會被添加。爲什麼我的UIImageView不會顯示爲子視圖?
我累了。