This AlertView can do more things which you need !
https://github.com/Alenw/AwAlertView。
cocoaPods安装 pod 'AlenwSpecs', '~> 1.0.6'
#####更多精彩内容,请查看demo!
1.如果调用Framework中的方法出现unrecognized selector sent to instance xxxx,请按照下面解决方法;
If this is part of a static library, you need to add -all_load to the Other Linker Flags build setting for the app linking against the library.
2.如果上传APP时出现 XCode 7上传遇到ERROR ITMS-90535 Unexpected CFBundleExecutable Key. 的解决办法
找到对应的bundle,删除info.plist里面的Executable file对应的一整行,包括值。
- 增加三个初始化方法
- 增加show 和hide 方法
- 增加stlye,区分不同使用情况

/*!
@method show
@abstract 弹出
*/
- (void)showAnimated:(BOOL)animated;
/*!
@param animation 消失时是否使用动画
*/
- (void)hideAnimated:(BOOL)animated;
###### show 带block方法
/**
- 默认执行完block中的内容会移除AwTipView
- @param animated 是否启用动画
- @param block 显示AwTipView时候执行的block
- @param completion 完成时候执行的block */
- (void)showAnimated:(BOOL)animated whileExecutingBlock:(nullable dispatch_block_t)block completionBlock:(nullable void (^)())completion ;
/**
- 类方法,显示message到指定View
- @param message 将要显示到message
- @param view View */ +(void)showMessage:(nullable NSString )message toView:(nonnull UIView )view; /
- 类方法,在View中移除AwTipView
- @param view view
- @param animated 是否动画 */ +(void)hideForView:(nonnull UIView *)view Animated:(BOOL)animated;
- 新版本修复了自定义View带UITableView 时cell点击事件被拦截BUG,当自定义view需要响应父视图事件时可以重写touch:begin方法 详见Demo b10
- 新增NSNotification字段 awAlertViewDismiss 用于移除 AwAlertView,详见Demo b10对应的自定义View
- 优化show方法名称,弃用了一些属性,详见AwAlertView.h
- 高级功能从b8 开始,演示自定义View,AwAlertView的contentView 响应键盘上移事件,介绍show方法使用等
- 拆分显示动画和移除动画,增加字段showtime用于广告使用,当showtime有值,将在contentView右上角显示
/** 提供多个动画效果,默认AwAlertViewAniDefault */
@property (nonatomic, assign) AwAlertViewAnimationStyle animationStyle;
/** 提供多个移除动画,默认AwDismissDefault /
@property (nonatomic, assign) AwDismissAnimation dismissAnimation;
/* block,注意:只响应一次 */
@property (nonatomic, copy,nullable) AwTipViewCompletionBlock clickBlock;
#####新增加方法,用于解决弹出TextField键盘遮挡问题
/**
- 动态更新自定义View的Y值
- @param positionY 动态调整自定义View的Y值
- @param duration 持续时间,动画时间,键盘弹起的时间是0.25秒 */
- (void)awAlertViewAnimationWithPositionYValues:(CGFloat)positionY andDuration:(NSTimeInterval)duration;
#####新增两个属性
/** 是否需要放弃键盘响应,这个属性与isUserHidden一起使用 */
@property (nonatomic, assign) BOOL needGiveupTouch;
/*!
* @property dimBackground
* @abstract 是否显示背景渐变色,默认显示
*/
@property (nonatomic, assign) BOOL hideDimBackground;
#####pragma mark - 不同需求的Show方法
/**
* AlertView 展示方法
*/
-(void)showAnimated:(BOOL)animated;
/**
* 指定即将展示的View的Y值,view显示位置居中
*
* @param positionY 相对父视图坐标系的Y
*/
-(void)showAnimated:(BOOL)animated withPositionY:(CGFloat)posY;
/**
* 指定在某个位置展示
*
* @param position origin,frame坐标系中左顶点坐标
*/
-(void)showAnimated:(BOOL)animated inPoint:(CGPoint)point;
/**
* 指定在某个区域显示,Note:如果是自定义View,只支持约束和在layoutSubViews重写的布局,
* 如果这个方面不是太懂的尽量不用这个方法
* @param rect 相对父视图坐标系的frame
*/
-(void)showAnimated:(BOOL)animated inRect:(CGRect)rect;

###Contact
Alen Wang
lanskyxti@163.com