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
textString
property takes NSAttributedString. - And finally use
show
orhide
methods to handle displaying.
STAlertView * alert = [[STAlertView alloc] initOnView:self.view];
alert.textString = [self demoText]; // This method return string kind of class NSAttributedString.
[alert show];
backColor
background color behind alert window.textString
attributed text for alert window.alertViewSize
custom Rect for alert window.alertViewCornerRadius
corner radius for alert window.padding
padding between text and alert frame.
- [NEW] Initial commit
This library is open-sourced by Shukhrat Tursunov.
The MIT License (MIT) Copyright © 2015 Shukhrat Tursunov