Problem in load image

Discussion in 'iOS Programming' started by iphonejudy, Jan 10, 2010.

  1. iphonejudy macrumors 6502

    iphonejudy

    Joined:
    Sep 12, 2008
    #1
    Its a simple issue only.

    I created a folder called images with in my app, and add some images under it.
    I am trying to load images in the imageview from the image folder.

    So I use the below code

    Code:
    UIImage* img1 = [UIImage imageNamed:@"End.png"];		imageview1.image=img1;
    

    Its working fine in the simulator.But not working in iphone.
     
  2. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #2
    When you added the images, did you check the copy files to target folder so that it copied the image in to the xcode project folder. If not it will not be built with the final .app file.
     

Share This Page