Closed law-cell closed 3 years ago
I add only a UITabBar in a UIViewController.
I don't understand what you are doing.
Are you using a UITabBarController
or just a UITabBar
in side a regular UIViewController
?
You should be using UITabBarController
, as that is the only one supported. If you want to use UITabBar
directly, you need to implement a lot of things, such as https://github.com/LeoNatan/LNPopupController/blob/9cde3c060c9e66b52f4949b18b315876d6004420/LNPopupController/LNPopupController/UIViewController%2BLNPopupSupport.h#L272 and maintain this on your own. It won't be enough, as there is a lot of custom code to support UITabBarController
.
Clearly, the framework works when used properly. Run the example project and see if you see the issue there.
@LeoNatan, thanks, I am using a UITabBar inside a regular UIViewController.
So, you mean I'd be better using a UITabBarController?
Yes. It just does what you are trying to do, in a standard way.
Thanks again!
Description
please watch this photo.
It is normal in TabBarViewController
and I change the code from: bottomViewFrame.origin = CGPoint(x: bottomViewFrame.minX, y: view.bounds.height - bottomViewFrame.height) to: bottomViewFrame.origin = CGPoint(x: bottomViewFrame.minX, y: view.bounds.height - 150)
I can see that it is normal but in the different position.
Device, OS and Xcode Versions I try it on several devices and different versions of IOS, which has no change.