Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Image to xCode by dragging it from File

Tags:

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?

like image 946
Development Avatar asked Jun 12 '12 12:06

Development


People also ask

Does Xcode support PNG?

To use images in Xcode, you need to upload them to Assets. xcassets , located in the Supporting Files folder. There are two options you can go with: bitmaps ( . png files) or vectors ( .


1 Answers

Add the image to Your project by clicking File -> "Add Files to ...".

Then choose the image in ImageView properties (Utilities -> Attributes Inspector).

like image 116
iMx Avatar answered Oct 17 '22 02:10

iMx