对于一般的程序,怎么样在 ViewController设置UIImageView框架?
UIView *baseView = [[UIView alloc] init];
[self.view addSubview:baseView];
// 显示UIImageView
UIImageView *myImage = [[UIImageView alloc]
initWithImage:[UIImage imageNamed:@"tool.png"]];
[baseView addSubview:myImage];
运行之后就黑屏,我猜是需要设置框架。