When using the UITabBarController, how do you get the size of the tab bar below? Just like you know how many tabbed numbers you have for your content? I see many examples of how people defined their child views on the [[UIScreen mainScreen] applicationFrame] tab, which may not be correct because the tab bar takes up a bit of space at the bottom of the screen.
Also, is it possible to resize the tab bar?
Thanks Ryan
, applicationFrame, , UITabBarController , , , .
, tabBar . , , , :
CGFloat myViewHeight = tabBarController.view .size.height - tabBarController.tabBar.size.height;
, :
NIB, loadView; - :
self.view.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
, [[UIScreen mainScreen] applicationframe], ; , .
NIB , Interface Builder.
If you can learn how to resize UITabBar, you can resize UITabBarController UITabBar. You can access the object by accepting
[[UITabBarController subviews] objectAtIndex:0]
But the documentation recommended that you do not get direct access to the object.
Source: https://habr.com/ru/post/1704042/More articles:Are there any open source / GIS mapping schemes written in Silverlight? - mappingRuby on Rails - Area of instance variables with partial views - scopeWill the C / C ++ compiler optimize this if statement? - c ++Installing SciPy on Linux Debian - scipyRun the command when the process dies - bash.Net / C #: what is the real size of the integer? - c #Creating a 2-game web text game - javascriptHow to associate an enumeration in WPF with the "current" value - enumsHow to deploy WAR on an existing Tomcat 6 instance using Cargo? - maven-2Implementing .NET DataSet Under the Hood - .netAll Articles