在 iPhone 应用程序 / iOS 中,我要如何制作一个透明的“加载”覆盖层来覆盖导航栏和键盘?
我尝试了下面的代码,但它既不能覆盖导航栏也不能覆盖键盘:
UIView *overlay = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 460)];
overlay.backgroundColor = [UIColor colorWithWhite:0 alpha:.5];
[self.view addSubview:overlay];
感谢