注意事项:git
UIView+MJAlertView.m里须要导入AppDelegategithub
使用方法:swift
case1:spa
UIView.addMJNotifierWithText("这不会回去。点击\"驳回\"隐藏它!", dismissAutomatically: false);
case2:code
UIView.addMJNotifierWithText("这个会本身隐藏", dismissAutomatically: true);
区别在于后面参数 false or trueget
original: https://github.com/mayuur/MJAlertViewclass