• 大小: 56KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-14
  • 语言: 其他
  • 标签: 导航栏  UINavigation  

资源简介

IOS修改导航栏高度demo,项目非常简单简洁,方便大家参考如何正确地修改UINavigationController中的MyNavigationBar高度,博客地址https://blog.csdn.net/u010775335/article/details/86176848

资源截图

代码片段和文件信息

//
//  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个文件信息

评论

共有 条评论