0
我不明白为什么我的代码不会将此自定义视图放在主视图的顶部。任何建议都会很棒。其他视图无法工作的UIView
这里是我的代码:
.H
@property (strong, nonatomic) IBOutlet UIView *saved;
.M
self.saved = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 568)];
self.saved.backgroundColor = [UIColor colorWithRed:0.0/255 green:102.0/255 blue:153.0/255 alpha:1];
[self.view bringSubviewToFront:self.saved];