我正在尝试通过 addubiew 将 uiimageview 放在滚动视图上,但没有显示。这是 viewDidLoad 中的代码:
UIImage *buttonImage = [UIImage imageNamed:@"button"];
UIImageView *buttonImageview = [[UIImageView alloc] initWithImage:buttonImage];
buttonImageview.frame = (CGRect){.origin=CGPointMake(0.0f, 0.0f), .size=buttonImage.size};
[self.scrollView addSubview:buttonImageview];
我究竟做错了什么?