SCLAlertView-Objective-C Documentation

repository·develop·Indexed 25 days ago

https://github.com/dogo/sclalertview

An Objective-C library for displaying various alert types, including success, error, notice, warning, info, edit, waiting, question, and custom alerts. Supports installation via CocoaPods and Carthage.

Tokens
317
Snippets
2
Records
2
Agent score
36%

What's inside SCLAlertView-Objective-C

  1. Install SCLAlertView-Objective-C via CocoaPods or Carthage

    develop

    You can install SCLAlertView-Objective-C using either CocoaPods or Carthage.

    CocoaPods Add the following line to your Podfile:

    pod 'SCLAlertView-Objective-C'

    Carthage Add the following line to your Cartfile:

    github "dogo/SCLAlertView"
    pod 'SCLAlertView-Objective-C'
    github "dogo/SCLAlertView"
  2. Show basic alert types using SCLAlertView

    develop

    Use the SCLAlertView class to show standard alert types. Most methods require a UIViewController (passed as the first argument), a title, a subtitle, a close button title, and a duration.

    Supported alert types include:

    • showSuccess:title:subTitle:closeButtonTitle:duration:
    • showError:title:subTitle:closeButtonTitle:duration:
    • showNotice:title:subTitle:closeButtonTitle:duration:
    • showWarning:title:subTitle:closeButtonTitle:duration:
    • showInfo:title:subTitle:closeButtonTitle:duration:
    • showEdit:title:subTitle:closeButtonTitle:duration:
    • showWaiting:title:subTitle:closeButtonTitle:duration:
    • showQuestion:title:subTitle:closeButtonTitle:duration:
    • showCustom:image:color:title:subTitle:closeButtonTitle:duration:
    SCLAlertView *alert = [[SCLAlertView alloc] init];
    [alert showSuccess:self title:@