🖥️
iOS App with Pop
Swift 4
Swift 4
  • iOS App development
  • Create New Project
  • Introduction to Xcode
  • App's 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
  • Finish add item
  • Delete todo item
  • Edit todo item
  • Custom new layout
  • Adding new delegate
  • Refactor
  • Save data
  • Pushing edit view
  • Large navigation
  • Drag item
  • Drop item (in app)
  • Where to go from here?
Powered by GitBook
On this page

Large navigation

PreviousPushing edit viewNextDrag item

Last updated 6 years ago

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

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

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

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

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

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