chenliangloveyou / easynavigation Goto Github PK
View Code? Open in Web Editor NEW一款超级简单的导航条管理工具。完全自定义导航条。没有UINavigationBar 和 UINavigationItem 这两个类。完全是对UIView的操作。
License: MIT License
一款超级简单的导航条管理工具。完全自定义导航条。没有UINavigationBar 和 UINavigationItem 这两个类。完全是对UIView的操作。
License: MIT License
[EasyNavigationView addLeftView:callback:]: unrecognized selector sent to instance 0x7fac1842eaf0
tabbar 其中的一个ViewController 用这个库包含 例如
HomeViewController *homeView = [HomeViewController new];
EasyNavigationController *homeNav = [[EasyNavigationController alloc]initWithRootViewController:homeView];
self.viewControllers = @[newsNav,liveNav,homeNav,governmentNav,peopleLiveNav];
在ViewController里 调用方法崩溃
导航条上的按钮图片都特别大
Hello Sir. I'm a UI/UX and Graphics Designer. I'm happy to see an open source project, So, I want provide a logo for you. Would you mind if I propose a new logo design for your project as my Open Source Contribution?
Thanks before
在新的viewcontroller的viewdidload 增加左边区域按钮时候出现
只能自己改下 先fixed。
EasyNavigationView.h ---605行 改成
@synchronized(self.leftViewArray)
{
[self.leftViewArray addObject:view];
__block NSInteger tidx =-1;
[self.leftViewArray enumerateObjectsUsingBlock:^(id _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
//@" "
if ([obj isKindOfClass:[UIButton class]]) {
UIButton * btn = (UIButton *)obj;
if ([btn.titleLabel.text isEqualToString:@" "]) {
//is back button
tidx= idx;
*stop =YES;
}
}
}];
if(tidx>0)
{
[self.leftViewArray exchangeObjectAtIndex:0 withObjectAtIndex:tidx];
}
}
我在demo里 ‘导航栏渐变’和‘导航栏隐藏’来个试图里给navigationview添加右侧button,总是显示在左侧,是不是没有适配iOS11呢
导航栏上的左右侧按钮在垂直方向不居中的bug
在EasyNavigationView.m中,按钮的纵坐标位置应该是
subViewY = self.height - NavigationNorlmalHeight_N()+(NavigationNorlmalHeight_N()-tempView.height)/2;
而不是
subViewY = self.height - NavigationNorlmalHeight_N()
删除栈中指定的控制器 使用 navi.viewControllers = [Controller] 不行的,
因为源码中 viewControllers 的set方法重写了, 但是重写的方法中没有任何代码
解决: 需要navi.setViewControllers([Controller])
会不会适配XS Max?
我新建一个空白的工程试过了,xib的控制器 完全没有效果,设置背景颜色失败了
根控制器使用tabbarVC,当push新的vc后,选择其他的tabbarItem时,tabbarItem选中的文字会被系统渲染成蓝色,之前的自定义tabbarItem选中的文字颜色代码无效:[tabBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor redColor]} forState:UIControlStateSelected];
崩溃->刚开始运行到的时候崩溃:nav_preview文件需要重新添加一遍,就解决掉了。
错误->除了iPhone x 其他设备运行出来的navview高度过高
用modal形式弹出控制器,有导航栏,但没有返回按钮
使用UISearchController的searchBar作为tableView的tableHeaderView,点击searchBar,会调用系统的转场,跳转到搜索页面,
在搜索页面,点击取消,搜索页面消失,前一个页面出现,系统的导航条也出来了
//- (void)setTitle:(NSString *)title
//{
// if (self.topViewController.navigationView) {
// [self.navigationView setTitle:title];
// }
//}
或将 ‘ self.topViewController.navigationView’ 的判断条件改为:self.topViewController.navigationController, 因为self.topViewController 拿回来的可能是 UINavigationController,且当 navigationController 为空时,获取navigationView时就会被NSAssert拦截,此判断根本无效:
if (!self.navigationController) {
NSAssert(NO, @"attention: this controller's navigationcontroller is null: %@",self);
}
将状态栏设置为白色时,**联通或者其他应用返回时会闪烁一下黑色再办成白色
可以自定义高度么 ?
self.disableSlidingBackGesture = YES;
NSLog(@"EasyNavigationController %d %d",[self.navigationController isKindOfClass:[EasyNavigationController class]],self.disableSlidingBackGesture);
输出 2018-06-26 17:59:43.825276+0800 czh_native[5295:1547268] EasyNavigationController 1 1
证明视图控制器是EasyNavigationController 但是依旧可以侧滑
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.