Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I need to know how to display an image using Xcode and Objective-C. I am using Xcode 4.5.2. I would prefer to use an empty application. Thanks.

share|improve this question
1  
We are not a site for tutorials, nor questions that show no effort on the part of the asker. Perhaps you could rephrase. – CodaFi Dec 4 '12 at 4:53

closed as not a real question by CodaFi, borrrden, Janak Nirmal, Mehul, Fahim Parkar Dec 4 '12 at 6:49

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

1 Answer

up vote 2 down vote accepted

Use UIImageView to display an image in app.

It is as simple as this,

UIImageView *imageView = [[UIImageView alloc] initWithFrame:rect];
imageView.image = [UIImage imageNamed:@"MyImage.png"];
[self.view addSubview:imageView];

You dont need a tutorial just for this. Just go through the documentation and you can figure out rest of the properties.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.