UITabBar 뒤에서 밀어 넣고 싶은 UIView가 바로 위에 배치됩니다.UITabBar 바로 위에 UIView를 밀어 넣는 방법
이것은 작동하지 않습니다. 내 견해는 나타나지 않습니다. 이 같은
- (void)showNotificationBar
{
CGRect frame = CGRectMake(0, 500, 320, 32);
frame.origin.y = CGRectGetMaxY(self.parentViewController.tabBarController.tabBar.frame) - frame.size.height;
notificationBar.frame = frame;
[self.parentViewController.tabBarController.tabBar.superview insertSubview:notificationBar
belowSubview:self.parentViewController.tabBarController.tabBar];
[UIView animateWithDuration:0.5 animations:^{
CGRect frame = notificationBar.frame;
frame.origin.y = CGRectGetMaxY(self.parentViewController.tabBarController.tabBar.frame);
notificationBar.frame = frame;
}];
}
알림 표시 줄이 탭 막대 (화면의 동일한 픽셀을 차지함)와 겹치기를 원하십니까, 아니면 탭 표시 줄의 북쪽에 있습니까? –
탭바의 북쪽 –