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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-22-2008, 11:57 PM   #1 (permalink)
New Member
 
Nitrex88's Avatar
 
Join Date: Apr 2008
Location: Long Island, NY
Age: 21
Posts: 84
Nitrex88 is an unknown quantity at this point
Send a message via AIM to Nitrex88 Send a message via Skype™ to Nitrex88
Default UIImageView Help

hey, about a week ago I posted about help with a UIImageView but the help i recieved wasnt very useful because I could not figure out what they were trying to tell me. I am really new to cocoa and objective-C, especially with this new iPhone SDK. I can't figure out how to use UIImage View in interface builder. I can drag in the Image View, assign it to an image that i added to the project and see the image in interface builder. Then, after connecting the IBOutlets I can run the program successfully but I never see the image. Can someone please clearly tell me what i need to put in all the .h and .m files to make an image appear. Nothing fancy, just the basic code for a simple project just to see an image. If it helps here is an example of something i tried to get the image to appear.

http://www.megaupload.com/?d=TZKITPDC

Tell me what to fix to see the image. If anyone can help thank you very much. Sorry for my noobishness.
Nitrex88 is offline   Reply With Quote
Old 04-23-2008, 01:34 AM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 802
scottiphone is on a distinguished road
Default Re: UIImageView Help

Interface Builder is a work in progress and you could spend a lot of time on something that's not quite working. My suggestion would be to do a search of the examples where they use this class. There are a number. These tend to be created and assigned in code. Copy and paste the code if need be and replace it later if you wish once it's easier to do in IB.
scottiphone is offline   Reply With Quote
Old 04-23-2008, 06:50 AM   #3 (permalink)
New Member
 
Join Date: Apr 2008
Location: Lexington, KY
Posts: 108
Fastrak is an unknown quantity at this point
Default Re: UIImageView Help

I agree. Keep in mind that you are using Beta software. There ARE problems and things that don't work (specifically images in interface builder). I personally don't use IB at all and write the code. Adding images, buttons, etc to your app to your code all have a similar flow to them

Widget *xyz = [[Widget alloc] initwithframe: CGRectMake( 1,2,3,4)];
[myView addSubview: xyz];

once you get the hang of it, it is actually faster AND MORE CLEAR to code stuff then to use IB - at least for now.
Fastrak is offline   Reply With Quote
Old 04-23-2008, 11:50 PM   #4 (permalink)
New Member
 
Nitrex88's Avatar
 
Join Date: Apr 2008
Location: Long Island, NY
Age: 21
Posts: 84
Nitrex88 is an unknown quantity at this point
Send a message via AIM to Nitrex88 Send a message via Skype™ to Nitrex88
Default Re: UIImageView Help

Quote:
Originally Posted by Fastrak
I agree. Keep in mind that you are using Beta software. There ARE problems and things that don't work (specifically images in interface builder). I personally don't use IB at all and write the code. Adding images, buttons, etc to your app to your code all have a similar flow to them

Widget *xyz = [[Widget alloc] initwithframe: CGRectMake( 1,2,3,4)];
[myView addSubview: xyz];

once you get the hang of it, it is actually faster AND MORE CLEAR to code stuff then to use IB - at least for now.
alright. I took your advice and decided to go with just coding. Its not hard just more to remember. Thanks and i was finally able to see my images.
Nitrex88 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UIImageView and photo library tkilmer iPhone SDK Development 8 11-08-2009 01:30 PM
Scale & Rotate Gestures - UIImageView col iPhone SDK Development 1 07-14-2008 07:33 AM


» Advertisements
» Online Users: 405
17 members and 388 guests
7twenty7, Alex-alex, Apptronics RBC, baja_yu, chiataytuday, dre, gwelmarten, ipodphone, jeroenkeij, jleannex55, matador1978, mbadegree, n00b, pbart, Retouchable, Sami Gh, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,676
Threads: 94,125
Posts: 402,910
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jleannex55
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:23 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0