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: Steven Woolgar <email@hidden>
- Date: Mon, 3 Aug 2009 12:17:41 -0700
On Sun, 2 Aug 2009 12:07:31 -0700 (PDT),
email@hidden wrote:
> 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?
NSString* ImageName = "BigBang.png";
just offhand, this is wrong. NSStrings need to point to NSString
not character arrays. This should be:
NSString* ImageName = @"BigBang.png";
^
Note the @ here.
W.
_______________________________________________
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