nitrex88 Posted April 13, 2008 Share Posted April 13, 2008 Hey, I have a question about the Image View element of the interface builder of SDK Beta 3. What code do i use and which class file do i put it in to make an image appear in the image view. I can drag it into the View and connect it as a outlet, but then im stuck. I've tried everything i can think of. It might have something to do with setImage but i can't figure it our. Someone please help. Link to comment https://www.insanelymac.com/forum/topic/99114-iphone-interface-builder-question/ Share on other sites More sharing options...
stroke Posted April 16, 2008 Share Posted April 16, 2008 UIImage *myImage = [[[NSBundle mainBundle] pathForResource:@"image_name" ofType:@"png"] autorelease]; theImageView.image = myImage; Link to comment https://www.insanelymac.com/forum/topic/99114-iphone-interface-builder-question/#findComment-710415 Share on other sites More sharing options...
nitrex88 Posted April 16, 2008 Author Share Posted April 16, 2008 Oh wow, thank you. That worked fine. This forum has been a lot of help. Link to comment https://www.insanelymac.com/forum/topic/99114-iphone-interface-builder-question/#findComment-710562 Share on other sites More sharing options...
Recommended Posts