Skip to content

Commit 9efd44a

Browse files
committed
5_1601-1656
1 parent 1fbd652 commit 9efd44a

File tree

2 files changed

+46
-46
lines changed

2 files changed

+46
-46
lines changed

subtitles/4. Views.srt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2503,7 +2503,7 @@ Because after that,
25032503

25042504
576
25052505
00:24:37,909 --> 00:24:42,012
2506-
all drawing is only gonna show up inside that triangle
2506+
all drawing is only gonna show up inside that triangle,
25072507
绘制的东西只显示在三角形内的部分
25082508

25092509
577

subtitles/5. Gestures and Multiple MVCs.srt

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6643,28 +6643,28 @@ that thing and inspect it.
66436643

66446644
1601
66456645
01:11:49,239 --> 01:11:52,173
6646-
Cuz you don't wanna set this thing right here which
6647-
因为你不想要将这东西放置在此因为
6646+
Cuz you gonna wanna set this thing right here which
6647+
因为你会想要设置这里的
66486648

66496649
1602
66506650
01:11:52,242 --> 01:11:53,841
66516651
is the identifier.
6652-
是验证程序
6652+
identifier,标识符
66536653

66546654
1603
66556655
01:11:53,910 --> 01:11:56,677
66566656
Every segue has an identifier, it's just the string and
6657-
每一个转场都有一个验证程序,这只是一个字符串且
6657+
每一个转场都有一个标识符,这只是一个字符串
66586658

66596659
1604
66606660
01:11:56,745 --> 01:12:00,013
66616661
that identifier is what's you're gonna use in your code
6662-
这个验证程序是你在代码中要用到的
6662+
这个标识符是你在代码中
66636663

66646664
1605
66656665
01:12:00,082 --> 01:12:02,649
66666666
to talk about this segue.
6667-
与转场进行互动
6667+
用来与转场进行互动的
66686668

66696669
1606
66706670
01:12:02,718 --> 01:12:04,252
@@ -6684,32 +6684,32 @@ So always set that.
66846684
1609
66856685
01:12:08,457 --> 01:12:09,223
66866686
And you wanna set it,
6687-
且你会想要放置它的,
6687+
且你会想要放置一个
66886688

66896689
1610
66906690
01:12:09,291 --> 01:12:12,059
66916691
the identifier to be something that kind of says what is
6692-
这个验证程序就好比像是在告诉你
6692+
不言而喻的标识符
66936693

66946694
1611
66956695
01:12:12,128 --> 01:12:12,660
66966696
segue does.
6697-
转场的作用是什么
6697+
说明转场的作用是什么
66986698

66996699
1612
67006700
01:12:12,729 --> 01:12:14,995
67016701
So in this case it shows a graph, so
6702-
所以在这里展示了一个图像,那么
6702+
这种情况它是展示了一个图像
67036703

67046704
1613
67056705
01:12:15,064 --> 01:12:16,764
67066706
I call this show graph.
6707-
我称之为图像显示
6707+
那么我称之为 Show Graph
67086708

67096709
1614
67106710
01:12:19,802 --> 01:12:22,236
67116711
That's how you set up your segue.
6712-
这就是你如何放置转场效果
6712+
这就是你如何设置转场效果
67136713

67146714
1615
67156715
01:12:22,304 --> 01:12:24,204
@@ -6724,42 +6724,42 @@ If you have a navigation controller and
67246724
1617
67256725
01:12:25,742 --> 01:12:28,209
67266726
you have a button that causes another card to slide on you
6727-
你有一个按钮能让另一个页面被滑动
6727+
你有一个按钮让另一个页面滑进来
67286728

67296729
1618
67306730
01:12:28,278 --> 01:12:30,445
67316731
just control drag from that button to the other MVC.
6732-
只需按住control然后从按钮中拖拽到其它的MVC
6732+
只需按住 control 后从按钮拖拽到其它 MVC
67336733

67346734
1619
67356735
01:12:30,513 --> 01:12:33,915
67366736
And then you use a show segue, and it'll just work.
6737-
然后你用到了转场展示,然后就完成了
6737+
接着选择用 Show 转场展示,这样就完成了
67386738

67396739
1620
67406740
01:12:33,983 --> 01:12:35,049
67416741
Has to be all inside,
6742-
所有的都应该在这了,
6742+
不过必须要在导航控制器里面
67436743

67446744
1621
67456745
01:12:35,117 --> 01:12:37,751
67466746
embedded in navigation controller, of course.
6747-
导航控制器,当然
6747+
当然嵌套到导航控制器才行
67486748

67496749
1622
67506750
01:12:37,820 --> 01:12:39,720
67516751
So what can you do with these identifiers?
6752-
所以你可以用这些验证程序来做什么呢
6752+
所以你可以用这些标识符来做什么呢
67536753

67546754
1623
67556755
01:12:39,789 --> 01:12:42,457
67566756
It is actually possible to cause a segue to happen from
6757-
这个(验证程序)能真正的实现转场效果通过
6757+
其实代码能用这个标识符实现转场
67586758

67596759
1624
67606760
01:12:42,525 --> 01:12:45,425
67616761
code, with performSegue withIdentifier, but
6762-
代码的方式,with performSegue withIdentifier,但
6762+
使用的是 performSegue(withIdentifier:) 方法
67636763

67646764
1625
67656765
01:12:45,494 --> 01:12:47,961
@@ -6769,17 +6769,17 @@ I'm not gonna talk about that, cuz we're never gonna do that.
67696769
1626
67706770
01:12:48,030 --> 01:12:49,329
67716771
We always gonna have buttons,
6772-
我们总是会有多个按钮,
6772+
我们总是会通过按钮实现
67736773

67746774
1627
67756775
01:12:49,398 --> 01:12:50,764
67766776
well I'm not gonna say we're never gonna do that,
6777-
好吧我不应该说我们永远也不会用到
6777+
好吧我不应该说我们永远也不会用到
67786778

67796779
1628
67806780
01:12:50,833 --> 01:12:52,767
67816781
but we won't be doing that in your assignment three,
6782-
但我们在第三节课程中还暂时不会用到,
6782+
但我们在作业三中还暂时不会用到
67836783

67846784
1629
67856785
01:12:52,835 --> 01:12:53,267
@@ -6789,22 +6789,22 @@ that's for sure.
67896789
1630
67906790
01:12:53,336 --> 01:12:54,301
67916791
It's pretty rare.
6792-
这非常重要
6792+
很少会这样做
67936793

67946794
1631
67956795
01:12:54,370 --> 01:12:56,303
67966796
But you can do it with performSegue.
6797-
但你可以通过performSegue来做
6797+
但你可以通过 performSegue 实现
67986798

67996799
1632
68006800
01:12:56,372 --> 01:12:59,006
68016801
But the more important use of the identifier is not causing
6802-
在使用验证程序中更重要的用法不是仅仅实现
6802+
标识符最重要的用法不是实现转场
68036803

68046804
1633
68056805
01:12:59,075 --> 01:13:00,774
68066806
segues to happen cuz segues kinda happen
6807-
转场因为转场效果的实现是
6807+
因为转场效果的实现是
68086808

68096809
1634
68106810
01:13:00,843 --> 01:13:02,643
@@ -6814,32 +6814,32 @@ automatically when the buttons are pressed.
68146814
1635
68156815
01:13:02,712 --> 01:13:04,645
68166816
It's to prepare for a segue.
6817-
这是为转场准备的
6817+
它的目的是为转场做准备
68186818

68196819
1636
68206820
01:13:04,714 --> 01:13:08,148
68216821
This is the most important method in all of
6822-
这是最重要的方法在所有的
6822+
prepare(for segue:) 是所有方法中
68236823

68246824
1637
68256825
01:13:08,217 --> 01:13:11,552
68266826
multiple MVC programming is this preparing for segue
6827-
多点MVC编程中,这是为转场准备的
6827+
实现多个 MVC 编程的最重要的方法
68286828

68296829
1638
68306830
01:13:11,620 --> 01:13:15,489
68316831
method which I'm gonna show you in a moment here, okay.
6832-
方法接下来我将要向你们在这展示下,
6832+
之后我将要在这向你们展示下
68336833

68346834
1639
68356835
01:13:15,558 --> 01:13:18,058
68366836
And remember, we're all segueing to a new MVC
6837-
别忘了,我们都通过转场到新的MVC
6837+
别忘了,我们总是转场到新的 MVC
68386838

68396839
1640
68406840
01:13:18,127 --> 01:13:20,227
68416841
freshly created, so it's always raw.
6842-
新建,那么它总是
6842+
全新的,未加处理的
68436843

68446844
1641
68456845
01:13:20,296 --> 01:13:22,830
@@ -6854,22 +6854,22 @@ Here is the method.
68546854
1643
68556855
01:13:25,534 --> 01:13:27,334
68566856
It's called prepare for segue, and
6857-
这称作为准备转场,且
6857+
prepare(for segue:), 准备转场
68586858

68596859
1644
68606860
01:13:27,403 --> 01:13:30,972
68616861
it also has a sender argument right there.
6862-
这里还有一个传送协议
6862+
同时还有 sender 参数,表示发起转场的实例
68636863

68646864
1645
68656865
01:13:31,040 --> 01:13:34,375
68666866
The segue that's passed along that first argument
6867-
转场效果要通过的第一个协议
6867+
作为第一个参数的转场 segue
68686868

68696869
1646
68706870
01:13:34,444 --> 01:13:37,611
68716871
is just a little container that contains interesting
6872-
只是一个小的容器其包含了有趣的
6872+
只是一个容器,其中包含了
68736873

68746874
1647
68756875
01:13:37,680 --> 01:13:39,613
@@ -6879,22 +6879,22 @@ information about the segue.
68796879
1648
68806880
01:13:39,682 --> 01:13:42,049
68816881
For example, the identifier, Show Graph.
6882-
例如,验证程序,图像显示
6882+
例如标识符(这里是 "Show Graph")
68836883

68846884
1649
68856885
01:13:43,585 --> 01:13:47,187
68866886
And very importantly, the controller that you're seguing
6887-
然后很重要的一个地方,你用于转场的控制器
6887+
然后很重要的,转场到的目标控制器
68886888

68896889
1650
68906890
01:13:47,256 --> 01:13:48,455
68916891
too, because the whole point is here,
6892-
也是重点,因为整个知识点就在这,
6892+
你为这个方法的作用
68936893

68946894
1651
68956895
01:13:48,524 --> 01:13:51,292
68966896
you're suppose to be preparing this MVC that's going to
6897-
你最好准备好这个MVC让它能
6897+
就是让目标 MVC 准备好
68986898

68996899
1652
69006900
01:13:51,360 --> 01:13:52,593
@@ -6904,22 +6904,22 @@ come on screen.
69046904
1653
69056905
01:13:52,661 --> 01:13:53,794
69066906
To do its job so
6907-
为了能让其运作那么
6907+
完成它的工作
69086908

69096909
1654
69106910
01:13:53,862 --> 01:13:57,431
69116911
you get that thing from this little segue object.
6912-
你要从这个小转场对象中得到那个东西( )
6912+
所以我们要从 segue 中得到目标控制器
69136913

69146914
1655
69156915
01:13:57,499 --> 01:14:00,301
69166916
The sender is kinda like buttons,
6917-
传感器有点像按钮,
6917+
sender 就是像按钮一类的
69186918

69196919
1656
69206920
01:14:00,370 --> 01:14:02,636
69216921
the button sender when we had the action there.
6922-
当我们有动作行为时按钮传感器
6922+
我们按下去来转场的按钮
69236923

69246924
1657
69256925
01:14:02,705 --> 01:14:05,505

0 commit comments

Comments
 (0)