EBBannerView
EBBannerView copied to clipboard
Just 1 line:Show a banner the same as iOS 9~13 Notification, or show a custom view. 只需一行代码:展示跟 iOS 系统一样的推送通知横幅,或展示一个自定义的 view。支持横屏、自动适应各种机型、自动声音/震...
if (@available(iOS 13.0, *)) { NSEnumerator *frontToBackWindows = [UIApplication.sharedApplication.windows reverseObjectEnumerator]; for (UIWindow *window in frontToBackWindows) { BOOL windowOnMainScreen = window.screen == UIScreen.mainScreen; BOOL windowIsVisible = !window.hidden && window.alpha > 0;...
onClickNotification 这个属性应该设置为open的访问权限吧,外部无法访问
使用了最新版本,选择了custom style后,点击top,出现顶部banner。 再点击banner上的close按钮后,页面变得没有反应,应该是window的问题,还需要修改一下。
 EBBannerView更新到1.1.2版本, 在应用内收到推送,过几秒种就仍然会崩溃, 从图片左边的调用栈看,一直调用 `-(UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event` 直至崩溃
I am not able to read contents when my phone is in dark mode 
有时候需要显示title 和 subtitle.
单独拽swift版本出来使用,修改读取xib文件崩溃,点击之后无反应不走onclick,动画闪烁,文字高度计算崩溃.
ios13中,本来当前viewController的状态栏是设为白色的(UIStatusBarStyleLightContent),弹出banner后会变回黑色。
When the text reaches two lines, it needs to show the whole content. When the text exceeds three lines, activate the drop-down gesture. So the function -(CGFloat)calculatedContentHeight{} that return bannerView's...