开发者

iPhone UIImageView not showing in set size

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜