Skip to content

Commit 070d24c

Browse files
committed
Run Review Tool
1 parent 7518d3e commit 070d24c

File tree

2 files changed

+40
-40
lines changed

2 files changed

+40
-40
lines changed

subtitles/3. Swift Programming Language.srt

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fall of 2017 and 18 academic year.
2121
5
2222
00:00:16,516 --> 00:00:19,885
2323
Today mostly, we're gonna talk about some Swift stuff.
24-
今天,大部分时间我们将要讨论一些 Swift 的事项
24+
今天,大部分时间我们将要讨论 Swift
2525

2626
6
2727
00:00:19,953 --> 00:00:23,321
@@ -31,12 +31,12 @@ Now, you've hopefully done your homework for the reading,
3131
7
3232
00:00:23,390 --> 00:00:25,891
3333
so some of the stuff will be kinda summary, but
34-
它们当中的一部分内容将会是总结
34+
所以这节课的一部分将会是总结那些内容
3535

3636
8
3737
00:00:25,959 --> 00:00:28,560
3838
some of this is really not covered in the reading.
39-
而一部分语法并没有在阅读材料中涵盖
39+
而这节课其他的并没有在阅读材料中涵盖
4040

4141
9
4242
00:00:28,629 --> 00:00:32,197
@@ -51,12 +51,12 @@ that reading is really great but it is great concise.
5151
11
5252
00:00:36,270 --> 00:00:37,201
5353
I know you probably feel like well,
54-
我知道你可能会觉得
54+
我知道你可能会觉得
5555

5656
12
5757
00:00:37,270 --> 00:00:39,171
5858
that was a lot of reading for something that's concise, but
59-
这里有太多的一些很简明的阅读内容
59+
要说它简明的话,内容是不是太多了
6060

6161
13
6262
00:00:39,240 --> 00:00:41,473
@@ -71,7 +71,7 @@ cover some of the other stuff. But before I do all that,
7171
15
7272
00:00:43,977 --> 00:00:46,912
7373
I'm gonna do a little, what I call a teaser demo of
74-
我要做些小事情,我管它叫做 auto-layout 的预告示例
74+
我要做些小事情,我管它叫做 auto-layout 的预告示例
7575

7676
16
7777
00:00:46,981 --> 00:00:50,115
@@ -305,7 +305,7 @@ line that appears as you move things around as part of this.
305305

306306
62
307307
00:03:09,556 --> 00:03:12,256
308-
So I'm gonna change my background from
308+
So I'm gonna change my background from
309309
我要将我的背景
310310

311311
63
@@ -451,7 +451,7 @@ what it does is it will take other views, like let's
451451
91
452452
00:04:32,839 --> 00:04:36,508
453453
say these four buttons and it will stack them together.
454-
四个按钮,然后把它们堆叠在一起
454+
四个按钮,然后把它们堆叠在一起
455455

456456
92
457457
00:04:36,577 --> 00:04:39,244
@@ -636,7 +636,7 @@ UI designers across all these apps. Also I wanna make sure
636636
128
637637
00:06:21,814 --> 00:06:26,317
638638
that these four buttons get equal amount of space. Okay,
639-
这四个按钮有着相同的间距
639+
这四个按钮有着相同的间距
640640

641641
129
642642
00:06:26,386 --> 00:06:29,421
@@ -901,7 +901,7 @@ views and the UI like pinning them to each other and
901901
181
902902
00:08:52,832 --> 00:08:56,200
903903
stuff is with control drag. Exact same way that we made
904-
是通过按住 Control 键拖拽。和我们将 UI
904+
是通过按住 Control 键拖拽。和我们将 UI
905905

906906
182
907907
00:08:56,269 --> 00:08:58,202
@@ -926,7 +926,7 @@ box here to the top. Okay, so I'm just dragging up towards
926926
186
927927
00:09:09,115 --> 00:09:11,750
928928
the top, and when I let go it's going to say, okay,
929-
当我松开鼠标的时候,它会问
929+
当我松开鼠标的时候,它会问
930930

931931
187
932932
00:09:11,818 --> 00:09:14,619
@@ -1236,7 +1236,7 @@ we want this thing to be above flips. So,
12361236
248
12371237
00:12:23,943 --> 00:12:26,310
12381238
let's work on flips first, let's just get it, so
1239-
让我们先对 Flips 展开工作
1239+
让我们先对 Flips 展开工作
12401240

12411241
249
12421242
00:12:26,379 --> 00:12:28,947
@@ -1351,7 +1351,7 @@ And to do that, again, I Control+drag from flips right
13511351
271
13521352
00:13:27,807 --> 00:13:30,808
13531353
here, to the thing I wanted to be in the center of,
1354-
我想要它位于其中心的东西
1354+
我想要它位于其中心的东西
13551355

13561356
272
13571357
00:13:30,876 --> 00:13:33,144
@@ -1496,7 +1496,7 @@ that encloses it. It could be anything as long as it's
14961496
300
14971497
00:14:51,457 --> 00:14:54,058
14981498
pinned to the bottom and in the center. And we can
1499-
钉在底部和中央
1499+
钉在底部和中央
15001500

15011501
301
15021502
00:14:54,126 --> 00:14:56,160
@@ -1541,7 +1541,7 @@ Because it's size is not constrained.
15411541
309
15421542
00:15:15,147 --> 00:15:17,482
15431543
It's not pinned to anything, only its location. So,
1544-
并没有钉到任何东西上,只有它的位置是
1544+
并没有钉到任何东西上,只有它的位置是
15451545

15461546
310
15471547
00:15:17,550 --> 00:15:20,818
@@ -1686,7 +1686,7 @@ builder. Right, remember this button down here that showed
16861686
338
16871687
00:16:46,538 --> 00:16:49,373
16881688
us all these phones? We can say, okay, what's this thing
1689-
所有的手机么?我们可以说,它在
1689+
所有的手机么?我们可以说,它在
16901690

16911691
339
16921692
00:16:49,442 --> 00:16:52,810
@@ -1886,7 +1886,7 @@ Properties like flip count and tons of methods all the ones
18861886
378
18871887
00:18:49,862 --> 00:18:53,397
18881888
in concentration in card and view controller. You learned
1889-
Concentration Card ViewController 里所有的方法
1889+
Concentration Card ViewController 里所有的方法
18901890

18911891
379
18921892
00:18:53,466 --> 00:18:56,367
@@ -1955,19 +1955,19 @@ remember that? You learned about initializers,
19551955

19561956
392
19571957
00:19:28,334 --> 00:19:31,001
1958-
we had initializers both for Card
1958+
we had initializers both for Card
19591959
对于 Card 和
19601960

19611961
393
1962-
00:19:32,069 --> 00:19: 32,469
1962+
00:19:32,069 --> 00:19:32,469
19631963
and for Concentration
19641964
Concentration来说
19651965

19661966
394
19671967
00:19:32,470 --> 00:19:33,870
19681968
they each did different things to get
19691969
我们都实现了构造器,它们每个都做了不同的事情来
1970-
1970+
19711971
395
19721972
00:19:33,940 --> 00:19:36,741
19731973
themselves an initializer. We didn't do initializer for
@@ -2146,7 +2146,7 @@ things I'm gonna talk about here are just a little quick
21462146
430
21472147
00:21:13,873 --> 00:21:17,741
21482148
minor things, asides. I mentioned doing a for
2149-
小事。我提到过用浮点数
2149+
小事。我提到过用浮点数
21502150

21512151
431
21522152
00:21:17,810 --> 00:21:22,279
@@ -2216,7 +2216,7 @@ thing, and a by tells you what it strides by. Stride is
22162216
444
22172217
00:22:04,656 --> 00:22:08,492
22182218
function that creates a countable range. Countable
2219-
是一个创建 CountableRange 的函数
2219+
是一个创建 CountableRange 的函数
22202220

22212221
445
22222222
00:22:08,561 --> 00:22:11,461
@@ -2256,7 +2256,7 @@ through 15.25, not to 15.25.
22562256
452
22572257
00:22:28,414 --> 00:22:31,581
22582258
It creates one that goes over floats and knows to step by
2259-
它创建了一个知道以 0.3 为幅度跨越的浮点数区间
2259+
它创建了一个知道以 0.3 为幅度跨越的浮点数区间
22602260

22612261
453
22622262
00:22:31,650 --> 00:22:34,951
@@ -2301,7 +2301,7 @@ little data structure. And all that tuple is, essentially,,
23012301
461
23022302
00:22:55,641 --> 00:22:59,943
23032303
like a mini struct that has no methods or vars or anything.
2304-
就像一个迷你的没有方法,变量的结构体
2304+
就像一个迷你的没有方法,变量的结构体
23052305

23062306
462
23072307
00:23:00,012 --> 00:23:04,114
@@ -2522,7 +2522,7 @@ anything associated with it. It's also very good for
25222522
505
25232523
00:25:11,042 --> 00:25:14,945
25242524
returning multiple values from a function. A function of
2525-
它也是非常好的
2525+
它也是非常好的
25262526

25272527
506
25282528
00:25:15,014 --> 00:25:17,781
@@ -2677,7 +2677,7 @@ But it is possible to declare foo like this,
26772677
536
26782678
00:26:48,474 --> 00:26:53,410
26792679
foo Double open curly brace, get with the curly brace, set,
2680-
for: Double { get {}
2680+
for: Double { get {}
26812681

26822682
537
26832683
00:26:53,478 --> 00:26:55,445
@@ -2797,7 +2797,7 @@ information in two different vars. Because they can get
27972797
560
27982798
00:28:09,955 --> 00:28:11,755
27992799
out of sync, all kinds of problems happens, so
2800-
无法同步,还有各种各样的问题发生
2800+
无法同步,还有各种各样的问题发生
28012801

28022802
561
28032803
00:28:11,824 --> 00:28:14,257
@@ -2812,7 +2812,7 @@ from the other one. Here's an incredibly good example
28122812
563
28132813
00:28:17,829 --> 00:28:21,765
28142814
indexOfOneAndOnlyFaceUpCard in concentration.
2815-
Concentration 中的 indexOfOneAndOnlyFaceUpCard
2815+
Concentration 中的 indexOfOneAndOnlyFaceUpCard
28162816

28172817
564
28182818
00:28:21,833 --> 00:28:26,736
@@ -2919,7 +2919,7 @@ should've in the first place, all right?
29192919
So let's go back here to Xcode,
29202920
我们回到 Xcode
29212921

2922-
585
2922+
585
29232923
00:29:30,769 --> 00:29:33,971
29242924
here we go bring our code back up, get rid of that.
29252925
把我们的代码拿回来,摆脱掉它
@@ -3166,7 +3166,7 @@ see if I can find one that's gonna be the one I found.
31663166

31673167
634
31683168
00:32:05,691 --> 00:32:07,490
3169-
So I'm gonna use a for loop here
3169+
So I'm gonna use a for loop here
31703170
所以我要使用一个 for 循环
31713171

31723172
635
@@ -3237,7 +3237,7 @@ FaceUpCards then obviously the index of the one and
32373237
648
32383238
00:32:49,968 --> 00:32:53,270
32393239
only FaceUpCard is nil, there's no such thing. And
3240-
是 nil,这里没有这样的东西
3240+
是 nil,这里没有这样的东西
32413241

32423242
649
32433243
00:32:53,339 --> 00:32:55,371
@@ -3332,7 +3332,7 @@ for most cards. But in case the index here,
33323332
667
33333333
00:33:50,395 --> 00:33:54,264
33343334
this index equals the new value of this, then I'm gonna
3335-
它等于 newValue
3335+
它等于 newValue
33363336

33373337
668
33383338
00:33:54,332 --> 00:33:59,369
@@ -3643,7 +3643,7 @@ another data structure. But if you were doing a lot of work
36433643
729
36443644
00:36:56,481 --> 00:36:58,114
36453645
then you probably want to do set and
3646-
那么你可能想要做 set 和 get
3646+
那么你可能想要做 set 和 get
36473647

36483648
730
36493649
00:36:58,182 --> 00:37:01,651
@@ -3654,7 +3654,7 @@ get to make it clear. But otherwise if it is
36543654
731
36553655
00:37:01,720 --> 00:37:06,322
36563656
a var if it seems like a var make it a var. Good question.
3657-
如果它看起来是一个变量就让它成为一个变量。非常好的问题
3657+
如果它看起来是一个变量就让它成为一个变量。非常好的问题
36583658

36593659
732
36603660
00:37:06,391 --> 00:37:09,892
@@ -5263,7 +5263,7 @@ then just put the thing you want in there.
52635263

52645264
1053
52655265
00:53:46,623 --> 00:53:51,560
5266-
Now, it has one very some serious restriction which is
5266+
Now, it has one very some serious restriction which is
52675267
但是有一个限制是
52685268

52695269
1054
@@ -5579,7 +5579,7 @@ I put this var arc4random. I have to say what type it is,
55795579
1116
55805580
00:57:24,374 --> 00:57:27,175
55815581
it's also gonna be an int. It could could be a string or
5582-
它也是 Int 类型的。扩展里的变量也可以是 String
5582+
它也是 Int 类型的。扩展里的变量也可以是 String
55835583

55845584
1117
55855585
00:57:27,244 --> 00:57:29,411

subtitles/4. More Swift.srt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5062,7 +5062,7 @@ but in that case you could. Okay, so
50625062
1013
50635063
00:52:53,771 --> 00:52:58,274
50645064
that's string. I guess we'll go like this. So, to
5065-
这就是字符串,就讲到这里
5065+
这就是字符串,就讲到这里
50665066

50675067
1014
50685068
00:52:58,342 --> 00:53:02,611
@@ -6484,7 +6484,7 @@ what's going on here. For example, Swift knows that this
64846484
1349
64856485
01:10:44,207 --> 01:10:47,775
64866486
operation thing returns a double. It knows that, so
6487-
operation 返回一个 Double 型,它知道的
6487+
operation 返回一个 Double 型,它知道的
64886488

64896489
1350
64906490
01:10:47,843 --> 01:10:50,645
@@ -7089,7 +7089,7 @@ an array. So that array actually has pointers to this
70897089
1470
70907090
01:17:08,925 --> 01:17:13,327
70917091
closure. Now this is a little mind bending. I don't expect
7092-
这里有一点绕弯子
7092+
这里有一点绕弯子
70937093

70947094
1471
70957095
01:17:13,395 --> 01:17:16,330
@@ -7989,7 +7989,7 @@ I will be doing views, gestures, multi-touch,
79897989
1650
79907990
01:27:19,735 --> 01:27:24,270
79917991
multiple MVCs, all that. >> For more,
7992-
多 MVC 那些
7992+
多 MVC 那些
79937993

79947994
1651
79957995
01:27:24,339 --> 01:27:26,907

0 commit comments

Comments
 (0)