Alert Popup From Bottom

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

  1. Alphamacaroon macrumors newbie

    Joined:
    Oct 25, 2008
    #1
    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:

    [​IMG]

    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.

    Cheers,

    -alpha
     

    Attached Files:

  2. xnakx macrumors newbie

    Joined:
    Oct 5, 2008
    #2
    that be an actionsheet!
    Code:
    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

    Joined:
    Oct 25, 2008
  4. Alphamacaroon thread starter macrumors newbie

    Joined:
    Oct 25, 2008
    #4
    UIThreePartButton

    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.

    -alpha
     
  5. Luke Redpath macrumors 6502a

    Joined:
    Nov 9, 2007
    Location:
    Colchester, UK
    #5
    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