【发布时间】:2014-05-07 05:36:08
【问题描述】:
如何在使用情节提要时在窗口上添加按钮,我希望该按钮在所有屏幕上始终可见。
我尝试在窗口上添加图像,但它不可见。
UIWindow *window =[UIApplication sharedApplication].delegate.window;
UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 300, 300)];
[img setBackgroundColor:[UIColor redColor]];
[window addSubview:img];
【问题讨论】:
标签: ios storyboard uistoryboard