Wrong width of view on startup of iPad app in iOS 7 -
if device (simulator or ipad) in landscape orientation , start app while querying width wrong results. 1 should 1024 in fact i'm getting 768 wrong. on ios 8 work expected. on iphone , ios 7 view first in portrait changes landscape works case.
in viewdidload
i'm getting the size view.bounds.size.width
. if rotate device , query data in didrotatefrominterfaceorientation
data correct. app don't need in viewdidload
, in method. in viewdidload
seems same behavior.
what's wrong here? how correct width of view on ios 7 , ios 8?
you should try getting width in viewdidlayoutsubviews:
or other method comes after in view hierarchy such viewdidappear:
hope helps you.
Comments
Post a Comment