Press "Enter" to skip to content

Swift – Touchbar 处理流程

junyi 0

NSTouchBar discovery by the system proceeds as shown from bottom-to-top in this list:

  1. App delegate
  2. App object
  3. Main window’s controller
  4. Main window’s delegate
  5. Main window
  6. Main window’s first responder
  7. Key window’s controller
  8. Key window’s delegate
  9. Key window
  10. Key window’s first responder

Which means it will try to find in the windowcontroller or app delegate.

Refer from: https://stackoverflow.com/questions/42342231/how-to-show-touch-bar-in-a-viewcontroller

发表评论

邮箱地址不会被公开。 必填项已用*标注