Skip to content

Commit 3bc64aa

Browse files
authored
Update 7. Multiple MVCs, Timer, and Animation.srt
1 parent c1029ba commit 3bc64aa

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

subtitles/7. Multiple MVCs, Timer, and Animation.srt

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,18 @@ well, can't do it. Okay, these other MVCs down in the corner,
106106
22
107107
00:01:09,036 --> 00:01:12,170
108108
they serve as part of the view of another MVC. That's
109-
109+
他们通过控制其他 MVC 中的一个 view,来为整个 app 服务。
110110

111111
23
112112
00:01:12,239 --> 00:01:16,608
113113
the way MVC's relate. An MVC is a view, part of a view
114+
这就是 MVC 之间相互联系的方法。一个 MVC 就是一个 view,同时也是其他类中的 view 的一部分。
114115

115116
24
116117
00:01:16,677 --> 00:01:19,811
117118
of another class. And that has some ramifications for MVC,
118119

120+
119121
25
120122
00:01:19,880 --> 00:01:22,781
121123
most notably it has to have blind structured communication
@@ -1160,34 +1162,41 @@ which is often nice to have a title of your master of
11601162
00:14:10,183 --> 00:14:13,517
11611163
your split view. Now you can- One thing to notice about this
11621164

1165+
11631166
286
11641167
00:14:13,586 --> 00:14:16,420
11651168
of course, is that now the master of your split view is
1169+
现在你的 Split View 的主视图控制器不再是 Calculator 了,
11661170

11671171
287
11681172
00:14:16,489 --> 00:14:19,757
11691173
no longer the calculator, it's a navigationController.
1174+
而是一个 navigationController。
11701175

11711176
288
11721177
00:14:19,826 --> 00:14:21,492
11731178
So if you actually wanted to get out the calculator,
1179+
如果你确实想要获取到 calculator,
11741180

11751181
289
11761182
00:14:21,561 --> 00:14:23,394
11771183
you would have to get the master and
1184+
你必须先获取到主视图控制器,
11781185

11791186
290
11801187
00:14:23,463 --> 00:14:27,465
11811188
then look at the master's rootViewController to find
1189+
然后找到它的 rootViewController,
11821190

11831191
291
11841192
00:14:27,533 --> 00:14:29,901
11851193
the calculator there.
1194+
你要找的 calculator 在那里。
11861195

11871196
292
11881197
00:14:29,969 --> 00:14:32,469
11891198
By the way, you can also put the detail, wrap it in
1190-
另外,你也可以
1199+
另外,你也可以把你的细节视图控制器放在一个 navigationController 中
11911200

11921201
293
11931202
00: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,
12021211
295
12031212
00:14:37,977 --> 00:14:40,445
12041213
you 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

12081216
296
12091217
00:14:40,513 --> 00:14:43,313
12101218
the master. So you can do it, but again if you do that,
1219+
所以你可以这么做,不过再一次,如果你这么做的话
12111220

12121221
297
12131222
00:14:43,382 --> 00:14:45,716
12141223
make sure when you look at the detail, if you find that
1224+
确保当你关注 detail 的时候,
12151225

12161226
298
12171227
00:14:45,784 --> 00:14:48,652
12181228
it's a navigationController, you need to look inside and
1229+
如果你发现他是一个 navigationController,你就需要向里看,
12191230

12201231
299
12211232
00:14:48,721 --> 00:14:51,488
12221233
see the thing that's inside of it, the rootViewController.
1223-
1234+
找到它内部的视图控制器,rootViewController。
12241235

12251236
300
12261237
00:14:51,557 --> 00:14:53,223

0 commit comments

Comments
 (0)