iphone - UIButton images look fine in IB but get stretched when displayed on app -
i'm developing enterprise app tracking mileage , maintenance company vehicles. i've added graphic buttons snazz bit. buttons way they're supposed on xib in ib, , on iphone other uiviews correct, on 1 particular uiview graphic images stretched way out of proportion vertically.
the first image below shows how it's supposed look, 3 graphics buttons @ bottom. second image shows how it's showing on phone. button on screen cap shows normally, can't counted on stay way.
it not consistent. calling view @ time may show image stretched or may not show image @ all. shows image normally, button looks below.
the development phone 4s running 6.1.3. views set retina 3.5 screen. xcode latest (whatever is).
again, it's on 1 view problem shows up. there uiview on same view controller hidden when uiview shown. button graphics on other view fine. of other views , view controllers use same graphics on uibutton, without problem.
in interface builder (xcode) created view using 4.5-inch screen height.
but device seeing problem 5-inch screen. view resized fit.
and when that, autolayout constraints interface builder put on subviews take on determine they do. constraints causing heights change.
Comments
Post a Comment