🖥️
iOS App with Pop
UIKit Swift 5
UIKit Swift 5
  • iOS App development
  • Swift
    • Variable & Constant
    • Number & String
    • Operator
    • Array, Dictionary & Tuple
    • Enum
    • Optional
    • Function
    • Class & Struct
    • Branching
    • Loops
    • Error handler
    • Protocol
    • Extension
  • Create New Project
  • Introduction to Xcode
  • Scene-Based Life-Cycle
  • UIViewController
  • Storyboard
  • First Run
  • Display todo list
  • Basic Auto Layout
  • MVC
  • Model
  • Binding TableView
  • Binding TableViewCell
  • TableViewDelegate
  • Add navigationBar with + button
  • Add new item page
  • TextField and Switch
  • Binding action
  • Add mock item to todo list
  • What is weak?
  • Finish add item
  • Delete todo item
  • Edit todo item
  • Custom new layout
  • Adding new delegate
  • Refactor
  • Pushing edit view
  • Large navigation
  • Drag item
  • Drop item (in app)
  • Save data
  • Where to go from here?
Powered by GitBook
On this page

Large navigation

PreviousPushing edit viewNextDrag item

Last updated 2 years ago

ใคร ๆ เขาก็ทำหัวโต ๆ

ถ้าเราเข้า Setting หรือ AppStore จะเห็นว่า แอปมี navigation bar ที่ใหญ่มาก เราอยากมีแบบนั้นบ้างแต่ให้หน้า add กับ edit เล็กเหมือนเดิม ทำอย่างไร

ง่ายมาก ให้เราเปิด Main.storyboard เลือกที่ NavigationBar อันแรก

  1. ติ๊กถูกที่ Prefer Large Titles ใน Attributes Inspector

  2. ที่หน้า Add ให้เลือก Large Title เป็น Never

ตัวอย่าง Navigation Bar ใหญ่ที่หน้าแรก