Search code examples
iosiphonexcodeios5xcode4

Adding Image to xCode by dragging it from File


I'm having trouble adding an image in xCode 4.2. When I'm inserting an UIimageview into the ViewController by dragging it from my desktop, it won't work.

Is there any other possible ways to add an image?


Solution

  • You can't add image from desktop to UIimageView, you only can add image (dragging) into project folders and then select the name image into UIimageView properties (inspector).

    Tutorial on how to do that: http://conecode.com/news/2011/06/ios-tutorial-creating-an-image-view-uiimageview/