浏览代码

target comments of @nayooti

B. Petersen 5 年之前
父节点
当前提交
040cc2f5b1
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      docs/uiview-layout.md

+ 4 - 3
docs/uiview-layout.md

@@ -33,8 +33,8 @@
 - "coordinator"
 - "coordinator"
   - convention, no requirement from UIKit
   - convention, no requirement from UIKit
   - defined as an empty protocol class from where other derive
   - defined as an empty protocol class from where other derive
-  - they take the view controller as argument on construction
-    and call eg. `pushViewController()` to go to other views
+  - they typically take a `UINavigationController` as argument on construction
+    and call eg. `pushViewController()` to navigate to other view controllers
   - stored as a member of the view controller
   - stored as a member of the view controller
   - everything done there could also be done in a view controller directly
   - everything done there could also be done in a view controller directly
   - when derived from an abstract base class, in theory, this helps on making things more reusable
   - when derived from an abstract base class, in theory, this helps on making things more reusable
@@ -65,7 +65,8 @@
 - `UIWindow`
 - `UIWindow`
   - backdrop for the ui, dispatches events, derived from `UIView`
   - backdrop for the ui, dispatches events, derived from `UIView`
   - stored in `UIApplication.shared.delegate.window`,
   - stored in `UIApplication.shared.delegate.window`,
-  - created in `application(_:didFinishLaunchingWithOptions:)` - TODO: is that correct?
+  - created in `application(_:didFinishLaunchingWithOptions:)`;
+    in pure iOS13 apps set in SceneDelegate
   - an app typicaly has only one window
   - an app typicaly has only one window
   - `window.rootViewController` is the anchor of all view controllers
   - `window.rootViewController` is the anchor of all view controllers