Beginner Question

Discussion in 'iOS Development' started by veeloc, Dec 14, 2008.

  1. veeloc

    veeloc New Member

    Joined:
    Sep 6, 2008
    Messages:
    815
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    Hey I'm a beginner to developing for iphone, i was just wondering if anyone knew where I could learn things like...

    UIPushButton* image = [ [ UIPushButton alloc ] initWithFrame: CGRectMake(0, 48, 320, 480) ];
    [ image setImage: [ UIImage imageNamed

    Please Register or Log in to view images

    "bigredbutton.jpg" ] ];
    [ image addTarget:self action

    Please Register or Log in to view images

    selector(imagePressed

    Please Register or Log in to view images

    forEvents

    Please Register or Log in to view images

    255)];
    [ mainView addSubview: image ];

    where to learn all that, tutorials on objective c (i think??) if i'm correct.
    and the frameworks like

    #import <UIKit/UIHardware.h>
    #import <UIKit/UIWindow.h>
    #import <UIKit/UIView.h>

    you know stuff like that.

    greatly appreciated!
    ------------------double post merged------------------
    btw i dunno why those smileys r ther, didnt mean to do that...
    ------------------double post merged------------------
    o in the code it was : ) and : ( (w/o spaces)
  2. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    Just put it in CODE tags.

    Code:
    UIPushButton* image = [ [ UIPushButton alloc ] initWithFrame: CGRectMake(0, 48, 320, 480) ];
    [ image setImage: [ UIImage imageNamed:@"bigredbutton.jpg" ] ];
    [ image addTarget:self action:@selector(imagePressed forEvents255)];
    [ mainView addSubview: image ];
    
    where to learn all that, tutorials on objective c (i think??) if i'm correct.
    and the frameworks like
    
    #import <UIKit/UIHardware.h>
    #import <UIKit/UIWindow.h>
    #import <UIKit/UIView.h>
    Sorry i can't answer your question though.
  3. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    http://www.google.com
  4. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S
    hmm no where have I seen that before lol

Share This Page