不需要使用Interface Builder。 也可以用下面代码来显示其他View。
 

CGRect myImageRect = CGRectMake(0.0f, 0.0f, 320.0f, 109.0f);
UIImageView *myImage = [[UIImageView alloc] initWithFrame:myImageRect];
[myImage setImage:[UIImage imageNamed:@"myImage.png"]];
myImage.opaque = YES; // explicitly opaque for performance
[self.view addSubview:myImage];
[myImage release];

相关文章:

  • 2022-01-27
  • 2021-11-15
  • 2022-12-23
  • 2021-08-14
  • 2021-09-14
  • 2021-09-21
  • 2021-07-07
  • 2021-06-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案