/**
* <#Description#>
*
* @param frame 悬浮框frame
* @param title 悬浮框title
* @param titleColor 悬浮框titleColor
* @param font 悬浮框titleFont
* @param labelBgColor 背景颜色
* @param duration 动画时间
* @param masksToBounds layer将位于它之下的layer都遮盖住
* @param CornerRadius 圆角
* @param layerBorderWidth边框宽度
* @param layerBorderColor边框颜色
*
* @return <#return value description#>
*/
- (id)initWithFrameTooQucikly:(CGRect)frame andWithTitle:(NSString *)title andWithTitleColor:(UIColor *)titleColor andWithLabelFont:(CGFloat)font andWithLabelBgColor:(UIColor *)labelBgColor andWithAnimateWithDuration:(NSTimeInterval)duration andWithLayerMasksToBounds:(BOOL)masksToBounds andWithLayerCornerRadius:(CGFloat)CornerRadius andWithlayerBorderWidth:(CGFloat)layerBorderWidth andWithlayerBorderColor:(CGColorRef)layerBorderColor{
self = [superinitWithFrame:frame];
if (self) {
// Initialization code
self.showLabel = [[UILabelalloc]initWithFrame:CGRectMake(0,0, self.frame.size.width , self.frame.size.height)];
self.showLabel.layer.masksToBounds = masksToBounds;
self.showLabel.layer.cornerRadius = CornerRadius;
self.showLabel.layer.borderWidth = layerBorderWidth;
self.showLabel.layer.borderColor = layerBorderColor;
self.showLabel.text = title;
self.showLabel.font = [UIFontsystemFontOfSize:font];
self.showLabel.textAlignment =NSTextAlignmentCenter;
self.showLabel.textColor = titleColor;
self.showLabel.backgroundColor = labelBgColor;
[selfaddSubview:self.showLabel];
[UIViewanimateWithDuration:duration animations:^{
[selfsetAlpha:0.0];
}];
}
returnself;
}