iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
xairsky
V2EX  ›  iDev

iOS NavBar 如何设置顶部显示一体?

  •  
  •   xairsky · Apr 8, 2019 · 6647 views
    This topic created in 2766 days ago, the information mentioned may be changed or developed.

    如图,就像 TabBar 一样,底部一体。

    Image

    14 replies  •  2019-04-09 14:33:26 +08:00
    haosxianr
    haosxianr
    Apr 8, 2019
    1
    你这是自己添加的 NavBar 控件,将 topAnchor 修改一下,使用 superview 而不是 safeArea
    Creolophus
    Creolophus
    Apr 8, 2019
    2
    啥叫显示一体
    CommandZi
    CommandZi
    Apr 8, 2019
    3
    不明白你的意思
    xingfuqiu
    xingfuqiu
    Apr 8, 2019
    4
    需要 NavigationController
    ioschen
    ioschen
    Apr 8, 2019
    5
    仔细看颜色就知道楼主想问什么呢😄
    xiubin
    xiubin
    Apr 8, 2019
    6
    不要使用 UINavigationBar, 你需要的是 NavigationController. UITabBar 也是同理
    xiubin
    xiubin
    Apr 8, 2019
    7
    @xiubin #6 这个界面应该至少是三个 vc 的
    loveuqian
    loveuqian
    Apr 8, 2019
    8
    这个需要一个 tabbar controller 套一个 navigation controlle 再套一个 view controller
    如果上面所说 3 个 controller
    xairsky
    xairsky
    OP
    Apr 9, 2019
    9
    @haosxianr
    @xingfuqiu
    @xiubin
    @loveuqian

    非常感谢几位大佬的解答。

    Win32 C++开发准备转 iOS&Mac 开发,正在自学 Swift。

    请问各位大佬有哪些 iOS&Mac&Swift4 的书推荐?
    loveuqian
    loveuqian
    Apr 9, 2019 via iPhone
    10
    只能看看最近新出的书吧
    当初看的橘子书都很老了
    xiubin
    xiubin
    Apr 9, 2019
    11
    @loveuqian #10 入门看文档或者视频吧,技术迭代太快书这种东西跟不上,而且 iOS 开发相关的入门书没有什么比较好的
    haosxianr
    haosxianr
    Apr 9, 2019
    12
    @xairsky 看 斯坦福大学 iOS 开发公开课 (这个有点老 https://www.bilibili.com/video/av8993458/?spm_id_from=333.788.videocard.3 ), 看最新的,看官方文档
    GromHellscream
    GromHellscream
    Apr 9, 2019
    13
    @xairsky 我也在学 iOS,iTunes U 上有 2017 年 Stanford CS193P swift4 的课程我推荐这个,我也在看。说不定,可以多多交流。
    GromHellscream
    GromHellscream
    Apr 9, 2019
    14
    @xairsky 我觉得这个教程也行,https://www.hackingwithswift.com/100,学起来比 CS193P 轻松一点。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1661 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 78ms · UTC 23:37 · PVG 07:37 · LAX 15:37 · JFK 18:37
    ♥ Do have faith in what you're doing.