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

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -