Does anyone know what is wrong with this?

Discussion in 'iOS Development' started by murphmanny, Sep 26, 2008.

  1. murphmanny

    murphmanny Banned

    Joined:
    Sep 19, 2007
    Messages:
    5,250
    Likes Received:
    3
    I am trying this in xcode and i am running the sdk final 2.1 iphone version
    and i keep getting this error from this set up:

    Picture 1.png




    i am not sure what is wrong with this
    does anyone else know

    here is the code:

    Code:
    // Set up the cell
    	SQLiteTutorialAppDelegate *appDelegate = (SQLiteTutorialAppDelegate *) [[UIApplication sharedApplication] autorelease];
    	Animal *animal = (Animal *) [appDelegate.animals objectAtIndex:indexPath.row];
    	
    	[cell setText:animal.name];
    	return cell;
    
  2. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    you're trying to create an instance of an "Animal" class, which you obviously haven't created.
  3. murphmanny

    murphmanny Banned

    Joined:
    Sep 19, 2007
    Messages:
    5,250
    Likes Received:
    3
  4. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    star twith somethign simpler.

    choose the utility template in xcode, and learn how to use UIViewAnimation as it does to flip the view, transitioning from view to view.
  5. murphmanny

    murphmanny Banned

    Joined:
    Sep 19, 2007
    Messages:
    5,250
    Likes Received:
    3
    i've tried hello world
    and that seems pretty easy
    i have experimented with the utilities template and i will try that out more

    thanx for the advice

    i was getting tutorials from http://www.iphonedevcentral.org/ but some of the tutorials use older versions of the sdk beta's

    thanx

Share This Page