Post

Replies

Boosts

Views

Activity

Reply to iOS 26: FloatingBarContainerView overlapping the whole custom ViewController
it is created by system in ios27,you can delete it from stack! like this: mmiNavigationController:UINavigationController then in viewdidload method ,u can do like this: (void)viewDidload { //XXXX [self.view.subViews removeLastObject];//FloatingBarHostingView is always added in the last } OR @interface UIView (addititonal) (nullable UIView *)findSubviewWithClass:(Class)targetClass; @end @implementation UIView (addititonal) (nullable UIView *)findSubviewWithClass:(Class)targetClass { // 1. 检查当前视图是否符合条件 if ([self isKindOfClass:targetClass]) { return self; } // 2. 递归检查子视图 for (UIView *subview in self.subviews) { UIView *foundView = [subview findSubviewWithClass:targetClass]; if (foundView) { return foundView; } } return nil; } @end then in viewdidload method ,u can do like this: (void)viewDidload { //XXXX UIView *fView = [self.view findSubviewWithClass:NSClassFromString(@"_UIFloatingBarContainerView")]; [fView removeFromSuperview]; }
Topic: UI Frameworks SubTopic: UIKit Tags:
1d
Reply to iOS 26: FloatingBarContainerView overlapping the whole custom ViewController
it is created by system in ios27,you can delete it from stack! like this: mmiNavigationController:UINavigationController then in viewdidload method ,u can do like this: (void)viewDidload { //XXXX [self.view.subViews removeLastObject];//FloatingBarHostingView is always added in the last } OR @interface UIView (addititonal) (nullable UIView *)findSubviewWithClass:(Class)targetClass; @end @implementation UIView (addititonal) (nullable UIView *)findSubviewWithClass:(Class)targetClass { // 1. 检查当前视图是否符合条件 if ([self isKindOfClass:targetClass]) { return self; } // 2. 递归检查子视图 for (UIView *subview in self.subviews) { UIView *foundView = [subview findSubviewWithClass:targetClass]; if (foundView) { return foundView; } } return nil; } @end then in viewdidload method ,u can do like this: (void)viewDidload { //XXXX UIView *fView = [self.view findSubviewWithClass:NSClassFromString(@"_UIFloatingBarContainerView")]; [fView removeFromSuperview]; }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
1d