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 Tutorials > Tutorial Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 08-15-2011, 09:37 AM   #1 (permalink)
H_R
Registered Member
 
Join Date: Aug 2011
Posts: 2
H_R is on a distinguished road
Default Problem with : static NSString *CellIdentifier = @”Cell”;

Well, I am Really new to Objective C and cannot figure my problems out easily by my own. It might be silly but I am stuck on something really stupid!

I am trying to go along this tutorial
Custom UITableViewCell Using Interface Builder | iPhone Programming Tutorials

and on this line :
PHP Code:
static NSString *CellIdentifier = @”Cell”
I got the this error :
Code:
Expected expression before @ token
also some lines farther I get a warning saying :
Code:
warning: 'setText:' is deprecated
on the line :
PHP Code:
[cell setText:[NSString stringWithFormat:@"I am cell %d"indexPath.row]]; 

All I do is I copy past this code from the blog to my project and I get the error.
PHP Code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

{

static 
NSString *CellIdentifier = @”Cell”;

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

if (
cell == nil){

cell = [[[UITableViewCell allocinitWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifierautorelease];

}

[
cell setText:[NSString stringWithFormat:@"I am cell %d"indexPath.row]];

return 
cell;


I think something has been changed in SDK since the tutorial been published. Itryed every thing even deleting Xcode 4 and installing Xcode 3 ! it is not Working !

Thank you
H_R is offline   Reply With Quote
Old 08-16-2011, 12:31 PM   #2 (permalink)
H_R
Registered Member
 
Join Date: Aug 2011
Posts: 2
H_R is on a distinguished road
Default

well ,I found the answer ! allegedly the quotation mark was a wrong character! (") it took me a while to figure it out though !
H_R 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



» Advertisements
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,961
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

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