@@ -106,16 +106,18 @@ well, can't do it. Okay, these other MVCs down in the corner,
10610622
10710700:01:09,036 --> 00:01:12,170
108108they serve as part of the view of another MVC. That's
109-
109+ 他们通过控制其他 MVC 中的一个 view,来为整个 app 服务。
110110
11111123
11211200:01:12,239 --> 00:01:16,608
113113the way MVC's relate. An MVC is a view, part of a view
114+ 这就是 MVC 之间相互联系的方法。一个 MVC 就是一个 view,同时也是其他类中的 view 的一部分。
114115
11511624
11611700:01:16,677 --> 00:01:19,811
117118of another class. And that has some ramifications for MVC,
118119
120+
11912125
12012200:01:19,880 --> 00:01:22,781
121123most notably it has to have blind structured communication
@@ -1160,34 +1162,41 @@ which is often nice to have a title of your master of
1160116200:14:10,183 --> 00:14:13,517
11611163your split view. Now you can- One thing to notice about this
11621164
1165+
11631166286
1164116700:14:13,586 --> 00:14:16,420
11651168of course, is that now the master of your split view is
1169+ 现在你的 Split View 的主视图控制器不再是 Calculator 了,
11661170
11671171287
1168117200:14:16,489 --> 00:14:19,757
11691173no longer the calculator, it's a navigationController.
1174+ 而是一个 navigationController。
11701175
11711176288
1172117700:14:19,826 --> 00:14:21,492
11731178So if you actually wanted to get out the calculator,
1179+ 如果你确实想要获取到 calculator,
11741180
11751181289
1176118200:14:21,561 --> 00:14:23,394
11771183you would have to get the master and
1184+ 你必须先获取到主视图控制器,
11781185
11791186290
1180118700:14:23,463 --> 00:14:27,465
11811188then look at the master's rootViewController to find
1189+ 然后找到它的 rootViewController,
11821190
11831191291
1184119200:14:27,533 --> 00:14:29,901
11851193the calculator there.
1194+ 你要找的 calculator 在那里。
11861195
11871196292
1188119700:14:29,969 --> 00:14:32,469
11891198By the way, you can also put the detail, wrap it in
1190- 另外,你也可以
1199+ 另外,你也可以把你的细节视图控制器放在一个 navigationController 中
11911200
11921201293
1193120200:14:32,538 --> 00:14:34,839
@@ -1202,25 +1211,27 @@ want to do that is to give it a title bar, cuz you don't,
12021211295
1203121200:14:37,977 --> 00:14:40,445
12041213you always navigate from the master, that's why it's called
1205- 你总是从导航来
1206- you always navigate from the master, that's why it's called
1214+ 你总是从主视图控制器导入的,这也是他被称为“主”的原因。
12071215
12081216296
1209121700:14:40,513 --> 00:14:43,313
12101218the master. So you can do it, but again if you do that,
1219+ 所以你可以这么做,不过再一次,如果你这么做的话
12111220
12121221297
1213122200:14:43,382 --> 00:14:45,716
12141223make sure when you look at the detail, if you find that
1224+ 确保当你关注 detail 的时候,
12151225
12161226298
1217122700:14:45,784 --> 00:14:48,652
12181228it's a navigationController, you need to look inside and
1229+ 如果你发现他是一个 navigationController,你就需要向里看,
12191230
12201231299
1221123200:14:48,721 --> 00:14:51,488
12221233see the thing that's inside of it, the rootViewController.
1223-
1234+ 找到它内部的视图控制器,rootViewController。
12241235
12251236300
1226123700:14:51,557 --> 00:14:53,223
0 commit comments