Re: Image question
Re: Image question
- Subject: Re: Image question
- From: Matt Neuburg <email@hidden>
- Date: Wed, 20 Apr 2011 10:56:07 -0700
On Wed, 20 Apr 2011 10:37:28 -0700, Robert McKeever <email@hidden> said:
>[currentDataDict setValue: currentText forKey: currentElementName];
>patientImage.image = (UIImage *)currentText;
(1) This is not an Xcode question, it's a Cocoa question. So, wrong list.
(2) Typecasting text to an image does not change the fact that it's text. That's why you're crashing - you're lying to the compiler about the type of what you're supplying, but you can't fool the runtime. What patientImage.image wants is an actual UIImage. Supply one. m.
--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden