简体   繁体   中英

Why not image display as center in iOS7

UIImageView doesn't display in center in iOS7 but it display correctly in StoryBoard design

Why it coming like that

I'm not using AutoLayout

在此处输入图片说明

Setting Image

在此处输入图片说明

Storyboard image

在此处输入图片说明

output image .

在此处输入图片说明

see simulator time on the image

Select both UIImageView and UILabel and do this in storyboard

在此处输入图片说明

and if you are not using auotlayout then you need AutoSizing in XCode size inspector. Select your UILabel and do this-

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM