Re: Well I am new to Objective-C
Re: Well I am new to Objective-C
- Subject: Re: Well I am new to Objective-C
- From: Greg Guerin <email@hidden>
- Date: Sun, 2 Aug 2009 12:28:52 -0700
Returns the image object associated with the specified filename.
+ (UIImage *)imageNamed:(NSString *)name
Subject: Well I am new to Objective-C
From: Agha Khan <email@hidden>
Date: Sun, 02 Aug 2009 02:35:22 -0700
HI:
I have a point to an object but some API's need only object. How
can I convert pointer to an object.
NSString* ImageName = "BigBang.png";
I have a pointer to a string (Image file name) , but [UIImage
imageNamed:FileName];
How I can make it work?
You're wrong: the UIImage method takes NSString*. The following
declaration is copied verbatim from the UIImage class reference web
page:
+ (UIImage *)imageNamed:(NSString *)name
I recommend that you work through an Objective-C tutorial. Then pick
one of Apple's iPhone sample apps and work your way through that, so
you can understand everything it does. If you don't have a good
understanding of the fundamentals, it's not going to work.
You can find examples and class references by searching ADC:
http://developer.apple.com/search/search.html
For example, to find the method declaration I pasted above, I simple
entered these keywords:
UIImage imageNamed
You should probably also read these:
http://www.cocoadev.com/index.pl?HowToAskQuestions
http://www.mikeash.com/getting_answers.html
-- GG
_______________________________________________
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