Alertsheet side by side buttons?

Discussion in 'iOS Development' started by gojohnnyboi, May 11, 2008.

  1. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    How can I make the buttons In my alertsheey side by side vs on top of one another. I've seen this in safari, sysinfo, mxtube, and fring.
  2. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    Some versions have buttons like that automatically. I don't know what you're doing, but I'm sure you could subclass the alert sheet to have it do what you want.
  3. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    Thanks, i found out how..

    simply add 2 buttons and set the row about like so:

    [alertSheet addButtonWithTitle

    Please Register or Log in to view images

    :"Left"];
    [alertSheet addButtonWithTitle

    Please Register or Log in to view images

    "Right"];
    [alerthSheet setNumberOfRows: 1];

Share This Page