wiialert

A package as AlertViewController For iOS;

Usage

A simple for alertView

var alert = WIIAlertWidget("提示", "网络异常,请稍后重试");
var ok = WIIAlertAction("确定", WIIAlertActionStyle.defult, (action) {
});
alert.addAction(ok);
var cancel = WIIAlertAction("取消", WIIAlertActionStyle.cancel, (action) {
});
alert.addAction(cancel);
alert.showIn(context);

A simple for ActionSheet

var alert = WIIActionSheetWidge("提示", "网络异常,请稍后重试");
var ok = WIIAlertAction("确定", WIIAlertActionStyle.defult, (action) {
});
alert.addAction(ok);
var destructive = WIIAlertAction("警告", WIIAlertActionStyle.destructive, (action) {
});
alert.addAction(destructive);
var cancel = WIIAlertAction("取消", WIIAlertActionStyle.cancel, (action) {
});
alert.addAction(cancel);
alert.showIn(context);

Libraries

WIIActionRowWidget
WIIActionSheetWidge
wiialert
WIIAlertAction
WIIAlertContentWidget
WIIAlertHorizontalActionWidget
WIIAlertVerticalActionWidget
WIIAlertWidget
WIICancelActionWidget
WIISheetContentRowWidget