Я выполнил этот ответ, чтобы переместить панель вкладок в верхнюю часть страницы. Он работал идеально до выпуска iOS 13. В iOS 13 панель вкладок видна внизу экрана. Любое другое обходное решение, которое я должен использовать?
Кто-нибудь сталкивался с такой же проблемой?
Обновление:
Ниже фрагмент кода, который я использовал в своем приложении:
- (void) viewWillLayoutSubviews {
[super viewWillLayoutSubviews];
[self.tabBar invalidateIntrinsicContentSize];
// Just a quick fix for making this to happen for iOS versions between 11.0 to 11.1
// Updating the frame in Main queue.
dispatch_async(dispatch_get_main_queue(), ^{
[self changeTabBarPosition];
});
// Set the translucent property to NO then back to YES to
// force the UITabBar to reblur, otherwise part of the
// new frame will be completely transparent if we rotate
// from a landscape orientation to a portrait orientation.
self.tabBar.translucent = NO;
self.tabBar.translucent = YES;
}
- (void)changeTabBarPosition {
CGFloat tabSize = 44.0;
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
if (UIInterfaceOrientationIsLandscape(orientation)) {
tabSize = 32.0;
}
CGRect tabFrame = self.tabBar.frame;
tabFrame.size.height = tabSize;
tabFrame.origin.y = [UIApplication sharedApplication].statusBarFrame.size.height;
self.tabBar.frame = tabFrame;
}
statusBarOrientation
устарела в iOS 13, поэтому проверьте и обновите свой код. покажи свой проверенный код - person Anbu.Karthik   schedule 22.08.2019