UIPreferencesTable help please

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

  1. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    Ok, so i made a UIPreferencesTable, with some cells, which to my understanding, are basically buttons.


    NOW, how would i go about making each button do something like

    [alertSheet popupAlertAnimated:YES];

    when selected?



    EDIT: i had this:


    - (void)tableRowSelected

    Please Register or Log in to view images

    NSNotification *)notification
    {
    [alertSheet popupAlertAnimated:YES];
    }

    and it worked, but it does that for ALL of the things selected.....How can i set it for just one? THANKS!





    HELP IS GREATLY APPRECIATED. Thanks to all who put in some effort.
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Code:
    -(void)tableRowSelected:(NSNotification *)notification;
  3. gojohnnyboi

    gojohnnyboi Well-Known Member

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


    Yes, i have this, however when i assaign something to here, they ALL do the same thing! What can i use to seperate that?


    {
    if(what == 1)
    [alertSheet popupAlertAnimated:YES];

Share This Page