开发者

how to use UIImageView in iphone application development?

开发者 https://www.devze.com 2023-03-22 02:41 出处:网络
i have dragged a UIImageView into a view and created an IBOutlet object in the header file of the UIViewController.

i have dragged a UIImageView into a view and created an IBOutlet object in the header file of the UIViewController.

In开发者_如何学C the Image View Control, I chose the image from the properties window, but when I launch the application, it does not show the image!

How can I fix this?


Sounds like you need to connect the UIImageView to your IBOutlet. Ctrl+Click your UIViewController under the objects pane and drag the line to the UIImageView. Let go and connect it to the object.


Thanks all for your help. I think the problem was with some image files that wont be displayed!! I resaved them and it's working now.

Thanks again

0

精彩评论

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