STAlertView is the new wonderful alert kind of View. It was also designed to cover user’s needs during customization. Created with delightful combination, STAlertView improves your user experience.
There are two ways to add the STAlertView library to your project. Add it as a regular library or install it through CocoaPods.
pod 'STAlertView'
You may also quick try the example project with
`pod try STAlertView'
Library requires target iOS 7.0 and above
- Use
initOnView:to initialize. - Then you can use many properties to customize the STAlertView.
- Then
textStringproperty takes NSAttributedString. - And finally use
showorhidemethods to handle displaying.
STAlertView * alert = [[STAlertView alloc] initOnView:self.view];
alert.textString = [self demoText]; // This method return string kind of class NSAttributedString.
[alert show];backColorbackground color behind alert window.textStringattributed text for alert window.alertViewSizecustom Rect for alert window.alertViewCornerRadiuscorner radius for alert window.paddingpadding between text and alert frame.
- [NEW] Initial commit
This library is open-sourced by Shukhrat Tursunov.
The MIT License (MIT) Copyright © 2015 Shukhrat Tursunov
