TSAlertView - iOS App Source Code

  • TSAlertView - iOS App Source Code
  • TSAlertView - iOS App Source Code
  •     Description   

  • UIAlertView drop-in replacement. Supports stacked buttons, input fields, user-configurable size, the following.

    "buttonLayout" property. This is useful when you have two buttons and you want them to be "stacked" instead of side-by-side.

    "width" property. Controls the display width of the alert view. Make better-looking alert views on larger screens.

    "maxHeight" property. Control how tall the alert view can grow before it displays the message in a scrolling UITextView instead of a UILabel.

    "style" property. Can be TSAlertViewStyleNormal for a normal alert view.  Or it can be TSAlertViewStyleInput for an alert view that contains an input text field.  When it's an input alert view, the keyboard is shown right away, and the alert view will slide up and possibly resize if necessary.

    "usesMessageTextView" property.  Set to YES to force the alert view to use a textview for the message area.

    "backgroundImage" property.  Can be set to a custom background image.  You should set this to a UIImage which you created with stretchableImageWithLeftCapWidth:topCapHeight:

    "inputTextField" property.  Use to access the input value before the alert view is shown.  Could also set the font or text alignment prior to showing the alert view.