-
大小: 56KB文件类型: .zip金币: 2下载: 0 次发布日期: 2021-05-14
- 语言: 其他
- 标签: 导航栏 UINavigation UINavigation
资源简介
IOS修改导航栏高度demo,项目非常简单简洁,方便大家参考如何正确地修改UINavigationController中的MyNavigationBar高度,博客地址https://blog.csdn.net/u010775335/article/details/86176848
![](http://www.nz998.com/pic/67376.jpg)
代码片段和文件信息
//
// AppDelegate.m
// TestUiViewController
//
// Created by XunFun on 2019/1/9.
// Copyright © 2019 bigun. All rights reserved.
//
#import “AppDelegate.h“
#import “ViewController.h“
#import “MyNaviViewController.h“
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
_window = [[UIWindow alloc]initWithframe:[UIScreen mainScreen].bounds];
_window.backgroundColor = [UIColor whiteColor];
MyNaviViewController*nav = [[MyNaviViewController alloc]initWithRootViewController:[ViewController new]];
_window.rootViewController =nav;
[_window makeKeyAndVisible];
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks disable timers and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources save user data invalidate timers and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-01-09 17:18 TestUiViewController\
目录 0 2019-01-09 20:41 TestUiViewController\TestUiViewController.xcodeproj\
文件 15228 2019-01-09 20:41 TestUiViewController\TestUiViewController.xcodeproj\project.pbxproj
目录 0 2019-01-09 17:18 TestUiViewController\TestUiViewController.xcodeproj\xcuserdata\
目录 0 2019-01-09 17:18 TestUiViewController\TestUiViewController.xcodeproj\xcuserdata\xunfun.xcuserdatad\
目录 0 2019-01-09 17:18 TestUiViewController\TestUiViewController.xcodeproj\xcuserdata\xunfun.xcuserdatad\xcschemes\
文件 355 2019-01-09 17:18 TestUiViewController\TestUiViewController.xcodeproj\xcuserdata\xunfun.xcuserdatad\xcschemes\xcschememanagement.plist
目录 0 2019-01-09 17:18 TestUiViewController\TestUiViewController.xcodeproj\project.xcworkspace\
文件 165 2019-01-09 17:18 TestUiViewController\TestUiViewController.xcodeproj\project.xcworkspace\contents.xcworkspacedata
目录 0 2019-01-09 17:18 TestUiViewController\TestUiViewController.xcodeproj\project.xcworkspace\xcuserdata\
目录 0 2019-01-09 20:42 TestUiViewController\TestUiViewController.xcodeproj\project.xcworkspace\xcuserdata\xunfun.xcuserdatad\
文件 50182 2019-01-09 20:42 TestUiViewController\TestUiViewController.xcodeproj\project.xcworkspace\xcuserdata\xunfun.xcuserdatad\UserInterfaceState.xcuserstate
目录 0 2019-01-09 17:18 TestUiViewController\TestUiViewController.xcodeproj\project.xcworkspace\xcshareddata\
文件 238 2019-01-09 17:18 TestUiViewController\TestUiViewController.xcodeproj\project.xcworkspace\xcshareddata\IDEWorkspaceChecks.plist
目录 0 2019-01-09 20:42 __MACOSX\
目录 0 2019-01-09 20:42 __MACOSX\TestUiViewController\
目录 0 2019-01-09 20:42 __MACOSX\TestUiViewController\TestUiViewController.xcodeproj\
文件 176 2019-01-09 17:18 __MACOSX\TestUiViewController\TestUiViewController.xcodeproj\._project.xcworkspace
文件 176 2019-01-09 20:41 __MACOSX\TestUiViewController\._TestUiViewController.xcodeproj
目录 0 2019-01-09 20:42 TestUiViewController\TestUiViewController\
文件 840 2019-01-09 20:23 TestUiViewController\TestUiViewController\MyNaviViewController.m
目录 0 2019-01-09 20:42 __MACOSX\TestUiViewController\TestUiViewController\
文件 333 2019-01-09 20:23 __MACOSX\TestUiViewController\TestUiViewController\._MyNaviViewController.m
文件 281 2019-01-09 17:18 TestUiViewController\TestUiViewController\AppDelegate.h
文件 227 2019-01-09 17:18 __MACOSX\TestUiViewController\TestUiViewController\._AppDelegate.h
文件 1319 2019-01-09 20:38 TestUiViewController\TestUiViewController\MyNavigationBar.m
文件 176 2019-01-09 20:38 __MACOSX\TestUiViewController\TestUiViewController\._MyNavigationBar.m
目录 0 2019-01-09 17:18 TestUiViewController\TestUiViewController\Assets.xcassets\
目录 0 2019-01-09 17:18 TestUiViewController\TestUiViewController\Assets.xcassets\AppIcon.appiconset\
文件 1590 2019-01-09 17:18 TestUiViewController\TestUiViewController\Assets.xcassets\AppIcon.appiconset\Contents.json
文件 62 2019-01-09 17:18 TestUiViewController\TestUiViewController\Assets.xcassets\Contents.json
............此处省略25个文件信息
- 上一篇:STM32F4 硬件I2C 使用DMA
- 下一篇:消除脉宽调制方法的初
相关资源
- 仿美团外卖底部导航栏
- 自己整理的所有的底部导航栏Tab切换
- 强大的顶部导航栏
- ViewPager+Fragment实现底部导航栏目左右
- 底部导航栏中间圆形按钮凸起效果d
- 字母导航栏
- TextView加Fragment实现底部导航栏 Fragm
- 实现安卓APP底部导航栏有消息圆点指
- 用 TabLayout 实现底部、顶部导航栏
- BottomNavigationView+ViewPager+Fragment底部导
- 仿微信底部导航栏
- 安卓图标素材集合导航栏图标小图标
- BottomNavigationView+ViewPager+Fragment
- list+button实现简单的左侧导航栏
- 给页面导航栏选中栏目添加特殊样式
- Qt 自定义导航栏
- 解决安卓嵌套H5软键盘遮挡问题以及导
- 底部导航栏.rar
- 淘宝去除导航栏所有分类代码
- 手机APP导航栏的图标-首页-订单-购物
- 各种app首页框架导航栏加滑动切换页
- 漂亮的右侧导航栏
- 仿天猫风格的导航栏,加多级分类
- ios 导航栏上滑隐藏下拉显示
- 仿今日头条顶部导航栏效果
- qt 制作的可以左右滑动的导航栏
- fragment底部导航栏
- 学校2级导航栏
- 一个非常好用的导航栏模板
- ApiCloud 顶部导航栏+底部导航 完美代码
评论
共有 条评论