Alert Popup From Bottom

Discussion in 'iOS Programming' started by Alphamacaroon, Oct 25, 2008.

  1. Alphamacaroon macrumors newbie

    Oct 25, 2008
    Anyone know if there is a standard way to easily create an alert that pops up from the bottom of the screen with buttons and background that look like:


    I've seen this in a few apps (like Facebook for example), but from all that I can find after reading into the SDK, those buttons and UIView must be created from custom images. Is this true? Is there a standard UI control or view that can be used to create these "aqua" buttons and background or do I have to photoshop them myself and create them using custom buttons?

    Any help would be greatly appreciated.



    Attached Files:

  2. xnakx macrumors newbie

    Oct 5, 2008
    that be an actionsheet!
    actionSheet = [[UIActionSheet alloc] initWithTitle:@"My ActionSheet Title" delegate:self cancelButtonTitle:nil destructiveButtonTitle:@"OK" otherButtonTitles:nil];
    			actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
    			[actionSheet showInView:self.view]; 			
    [actionSheet release];
  3. Alphamacaroon thread starter macrumors newbie

    Oct 25, 2008
  4. Alphamacaroon thread starter macrumors newbie

    Oct 25, 2008

    I was playing around with this and thought I would take a look at what was under the covers using actionSheet.subviews.

    The debugger shows the buttons as a class of UIThreePartButton. These are neat little buttons and would be nice to be able to use them elsewhere. Anyone have any information on UIThreePartButton? Has anyone else used them outside of the action sheet?

    Just curious as they don't seem to be documented.

  5. Luke Redpath macrumors 6502a

    Nov 9, 2007
    Colchester, UK
    Undocumented == private API. Best not use private APIs or you risk app store rejection (fine for private adhoc apps though but they may break).

Share This Page