开发者

iPhone UIImageView not showing in set size

开发者 https://www.devze.com 2023-02-17 23:37 出处:网络
I have a simple app, straight out of the SDK TabBar template, where I implemented UIImageView outlet set in the 开发者_运维百科AppDelegate UIWindow. I want to display there a static image each time us

I have a simple app, straight out of the SDK TabBar template, where I implemented UIImageView outlet set in the 开发者_运维百科AppDelegate UIWindow. I want to display there a static image each time user taps a tabbar item. It works fine (the image is displayed and hidden when it should) with one exception:

I have created the UIImageView in IB and set the size 320x430, so the image does not hide the tabbar. The problem is, UIImageView always shows the size of the window, covering entire screen. Any idea why?


Make sure that you set clipsToBounds to YES.

0

精彩评论

暂无评论...
验证码 换一张
取 消