Subscribe Newsletter

Your Name  : 
Email Address *  : 
  • Online: Get Electricity Bill Now on Mobile and Email | Bala-Krishna
  • webs.com: com and type in the IP address you want to convert into its decimal url,...
  • PNR Status: check multiple pnr status with a single click PNR Status
  • Click here: Cheers for the informative blog post, I truly appreciated it. I would...
  • Leela: Only site on web which allows checking of Multiple Train PNR Status with a...
  • PUNEET: getting authentication error in digsby while opening yahoo email accounts,...
  • Arvind Pandit: Search your bank SWIFT code online | Bala-Krishna
  • pokemon: Wordpress WP_Categories doesn?t exist Error Fix | Bala-Krishna
  • Jambula Hanmanth Reddy: SIR/MADAM, I have forgot my username,password,and...
  • Jitendrakumar: This is working Perfectly. Thanks Buddy
  • ashfaq: nice post it well me lot no 1 has solution for this problem
  • irctc pnr status: This is useful information to know the pnr status. Thanks for...
  • Maria: How? How do you change the Digsby default yahoo server to the new one?...
  • Archives

  • Blog Stats

Xcode 4 UIImage imageNamed: Method Not Found Error

While working with an Iphone Application i wanted to display an image using UIImageView control i have designed using Interface Builder. The working environment is Mac 10.6, Xcode 4 and IOs SDK 4. Required images added to Resources folder in project. The code line is as below.

[imageView1 setImage:[UIImage imageNamed:@”130_001.jpg”]];

When i build and run application compiler break at this point and throw an error : Method ‘+imageNamed:’ not found (return type defaults to ‘id’)

I tried searching everywhere including IOS SDK documentation but could not find anything related to this issue. Finally, i tried to assign image to UIImageView in two steps. First is creating UIImage object using imageNamed method and then assign that image object to ImageView using setImage method. imageView object already added to Interface Builder. I did this in two steps below:

UIImage *image = [UIImage imageNamed: @"130_001.jpg"];
[imageView1 setImage:image];

As you see there is not much difference in both code. Somehow image object could not assigned directly using setImage method. If you have any idea please share your information using comments box.


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply