chenliangloveyou / easyshowview Goto Github PK
View Code? Open in Web Editor NEW一款非常简单的展示工具。提示框,加载框,空白页提示,alert弹出框。一行代码搞定所有操作。
License: MIT License
一款非常简单的展示工具。提示框,加载框,空白页提示,alert弹出框。一行代码搞定所有操作。
License: MIT License
-(void)initTabBarController
{
// self.delegate = self;
UIViewController *homeVC = [[UIViewController alloc] init];
homeVC.title = @"测试1";
EasyNavigationController *homeNag = [self settingTabbarItemWithRootVC:homeVC img:@"tab_home_note" selectImg:@"tab_home_selected"];
UIViewController *discoveryVC = [[UIViewController alloc] init];
discoveryVC.title = @"测试2";
EasyNavigationController *workProNag = [self settingTabbarItemWithRootVC:discoveryVC img:@"tab_dynamic_note" selectImg:@"tab_dynamic_selected"];
UIViewController *orderVC = [[UIViewController alloc] init];
orderVC.title = @"测试3";
EasyNavigationController *processNag = [self settingTabbarItemWithRootVC:orderVC img:@"tab_chat_note" selectImg:@"tab_chat_selected"];
UIViewController *mineVC = [[UIViewController alloc] init];
mineVC.title = @"测试4";
EasyNavigationController *mineNav = [self settingTabbarItemWithRootVC:mineVC img:@"tab_mine_note" selectImg:@"tab_home_selected"];
//workProNag
self.viewControllers = @[homeNag,workProNag,processNag,mineNav];
self.selectedIndex = 0;
}
写的不错,但是 EasyNavigation未考虑横屏带来的影响,强制物理横屏之后 导航布局错乱
EasyTextConfig *config = [EasyTextConfig shared];
config.bgColor = [UIColor whiteColor];
appdelegate里面设置了bgColor. info.plist里面关闭暗黑模式.真机本身设置了暗黑模式.
bgView显示的是黑色的.
================================JJException Start==================================
2021-03-03 15:30:24.867388+0800 MXProject[3955:601372] JJException Type:64
2021-03-03 15:30:24.867600+0800 MXProject[3955:601372] JJException Description:Need invalidate timer from target:EasyTextView method:timerAction
2021-03-03 15:30:24.867775+0800 MXProject[3955:601372] JJException Extra info:(null)
2021-03-03 15:30:24.868163+0800 MXProject[3955:601372] JJException CallStack:(
0 MXProject 0x00000001051cfd88 -[JJExceptionProxy handleCrashException:exceptionCategory:extraInfo:] + 144
1 MXProject 0x00000001051cf980 _Z20handleCrashException24JJExceptionGuardCategoryP8NSString + 116
2 MXProject 0x00000001051d7d34 -[TimerObject fireTimer] + 352
3 Foundation 0x000000019b74d430 __NSFireTimer + 64
4 CoreFoundation 0x000000019a3d73e0 F3021642-E3C0-33F8-9911-DD303A6056D0 + 635872
5 CoreFoundation 0x000000019a3d6fe4 F3021642-E3C0-33F8-9911-DD303A6056D0 + 634852
6 CoreFoundation 0x000000019a3d64c4 F3021642-E3C0-33F8-9911-DD303A6056D0 + 632004
7 CoreFoundation 0x000000019a3d0850 F3021642-E3C0-33F8-9911-DD303A6056D0 + 608336
8 CoreFoundation 0x000000019a3cfba0 CFRunLoopRunSpecific + 572
9 GraphicsServices 0x00000001b1138598 GSEventRunModal + 160
10 UIKitCore 0x000000019ccc12f4 CC6E5AC7-8248-35F6-8B42-2E25C93DCF0A + 11723508
11 UIKitCore 0x000000019ccc6874 UIApplicationMain + 164
12 MXProject 0x0000000104fdec30 main + 140
13 libdyld.dylib 0x000000019a0ae568 0B475C78-3C12-3121-B7F8-2B95B83DAF44 + 5480
)
alert 弹框可以添加输入框么?
现在有用到这个自定义导航栏,但是需要在每个XIB里面 预留导航栏高度?而这个高度又是变化的。难道要在每个控制器里又用代码适配iPhoneX? 有没 有好的解决方法呢?
loadingview偶尔会提前消失,然后这个时候网络请求还没成功。我用SVProgressHUD就一切正常,不知道作者有遇到没?
showLodingText不显示在屏幕**
能修改成自己 来隐藏动画时间么
跳转页面 不移除空白页,返回上级,通知未移除(对EasyEmptyView是否移除抱怀疑态度),空白页,顶端提示,和自定义alert横屏适配问题!!!很适用,👍
不显示在屏幕**
有个提示是否删除。。。数据的弹框,没有交互按钮,就只能重新跑了
const CGFloat EasyShowAnimationTime = 0.3f ; //动画时间
这个参数能外部修改么
三种样式的框 用不同的pod 子目录的形式进行
楼主你好,东西很nice,多谢🙏分享,不过在查看过程中发现了一点点小的问题:在纯文本提示语文字过多展示在状态栏和导航栏时,字体会偏右且顶到屏幕边缘,在带图片提示语文字过多时,展示在状态栏和导航栏时,边缘文字会被屏幕覆盖部分 测试在8p上
您好!我手动集成您这个源码,发现。EasyShowTextView 这个弹窗又问题,当配置options.textSuperViewReceiveEvent = NO;时弹窗出现在屏幕左边且有一部分没有显示,看了一下代码,好想问题出现在 EasyShowTextView.m 文件271行代码 EasyShowTextView *showView = [[EasyShowTextView alloc] initWithFrame:CGRectZero];和342行代码
if (!self.options.textSuperViewReceiveEvent) {
showFrame.origin = CGPointMake((self.width-backGroundW)/2, showFrameY) ;
}这里有问题,self.width的数值为0,导致显示不正常。
cocoapods无法搜到,只能手动集成??
你好,请问我想调用默认的左上角的返回按钮事件,但是调用setNavigationBackButtonCallback这个方法总是崩溃。希望能得到您的帮助。
顶部弹框没有适配iPhone Xr 及其以上机型
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.