how to use UIImageView in iphone application development?
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
精彩评论