내 navigationBar 및 TabBar를 커버하지 않는 두 번째 TabBarController에서 "데이터로드 중 ..."이라는 UIView 오버레이를 만들려고합니다.NavView 및 TabBar가있는 collectionViewController의 UIView 오버레이
나는 현재
UIView *overlayView = [[UIView alloc] initWithFrame:self.navigationController.view.frame];
overlayView.backgroundColor = [UIColor blackColor];
overlayView.alpha = 0.4;
overlayView.tag = 88;
UILabel *message = [[UILabel alloc] initWithFrame:self.navigationController.view.frame];
[message setFont:[UIFont fontWithName:@"HelveticaNeue-Light" size:20.0f]];
message.text = @"Loading data...";
message.textColor = [UIColor whiteColor];
message.textAlignment = NSTextAlignmentCenter;
message.tag = 99;
[self.navigationController.view addSubview:overlayView];
[self.navigationController.view addSubview:message];
현재 메시지가 잘 작동하고 내 코드로 이것을 가지고 있지만 UIView의 오버레이 내 TabBar의 취재는? 이 문제를 해결하도록 도와 주실 수 있습니까?
위로 가기 : 프로그래밍 방식으로 navBar 및 tabBar를 덮지 않는 UIView 오버레이를 표시하려고합니다.
감사와 환호!
탐색 및 탭 표시 줄을 포함하지 않는 검은 색 오버레이를 원하십니까? –
정확히 @HirenPatel – EdSniper