Stupid compiler says no

Discussion in 'iOS Development' started by gojohnnyboi, Apr 6, 2008.

  1. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    Ok, so i have this:


    - (void)bar

    Please Register or Log in to view images

    UINavigationBar*)navbar buttonClicked

    Please Register or Log in to view images

    int)button
    {
    switch (button)
    {
    case 0: [self terminateWithSuccess]; break;
    case 1: [about presentFromAboveView: mainView ]; break;
    }
    }

    and when i try and compile it says:

    about undeclared
    mainView unclared...



    how can i fix this?



    EDIT:


    also, i need help with my UIImageview:

    UIImageView *background = [[[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 320.0f, 480.0f)] autorelease];
    [background setImage:[[UIImage imageAtPath:[[NSBundle mainBundle] pathForResource

    Please Register or Log in to view images

    "Default" ofType

    Please Register or Log in to view images

    "png" inDirectory

    Please Register or Log in to view images

    "/Applications/Firmware.app"]] retain]];
    [mainView addSubview: background];
  2. albert_$n

    albert_$n New Member

    Joined:
    Mar 2, 2008
    Messages:
    338
    Likes Received:
    6
    plz come in irc.freenode.net in room #howtocode

    im learning ObjC and ill help you
    we can code together

    Please Register or Log in to view images

  3. albert_$n

    albert_$n New Member

    Joined:
    Mar 2, 2008
    Messages:
    338
    Likes Received:
    6
    i'll help you in the channel! plz join

    its to difficult to explain in a post
  4. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    Hold on

Share This Page