height - IOS: size of view in iPad project with storyboard -
i start new project in xcode 5 ipad; in project target set application landscape mode (right , left) in storyboard set first view in landscape , when run it's in landscape mode correctly. clean. if log:
nslog(@" width:%f", self.view.bounds.size.width); nslog(@" height:%f", self.view.bounds.size.height); i tried:
nslog(@" width:%f", self.view.frame.size.width); nslog(@" height:%f", self.view.frame.size.height); the result width: 768 , height: 1024
but it's wrong because have landscape orientation. what's problem?
are adding nslogs viewdidload ? have let view load before checking dimensions. should report correct dimensions in viewdidappear.
Comments
Post a Comment