Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-25-2009, 01:27 PM   #1 (permalink)
mygaccount
Registered Member
 
Join Date: Nov 2009
Posts: 1
mygaccount is on a distinguished road
Default Update image view at runtime

Hello, I am just trying to figure out how to change which image the UIImageView shows. Here's my code.

-----------
ImageViewViewController.h
-----------

@interface ImageViewViewController : UIViewController {
IBOutlet UIImageView *imageView;
}

@property (nonatomic, retain) IBOutlet UIImageView *imageView;

-------------
ImageViewViewController.m
-------------
@implementation
@synthesize imgageView;

- (void)viewDidLoad {
UIImage *image = [UIImage imageNamed:@"delete.png"];
imageView = [[UIImageView alloc] initWithImage:image];
[image release];
[super viewDidLoad];
}

I have connected this outlet to the imageView in IB and have copied this image into the Resources directory. I would love some help. Thanks
mygaccount is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,373
Threads: 93,996
Posts: 402,447
Top Poster: BrianSlick (7,978)
Welcome to our newest member, kerendx27
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:05 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.