ios - Issue with frame size of UIView -


i'm working on ipad project, it's on landscape view. , tried doing:

self.view.frame.size.height 

why returning 960? while in landscape height dimension of view should 768 right?

what trying allocinitwithframe uitoolbar located @ bottom. uitoolbar has height of 50, here's did failed:

self.bottom_bar = [[uitoolbar alloc] initwithframe:cgrectmake(0, self.frame.size.height-50, self.view.frame.size.width, 50)]; 

why , how do this?

two postings (one , two) referenced similar problem. both suggest using self.view.bounds instead of self.view.frame.size.width because bounds change along interface orientation.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -