@@ -6643,28 +6643,28 @@ that thing and inspect it.
66436643
664466441601
6645664501: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
664966491602
6650665001:11:52,242 --> 01:11:53,841
66516651is the identifier.
6652- 是验证程序
6652+ identifier,标识符
66536653
665466541603
6655665501:11:53,910 --> 01:11:56,677
66566656Every segue has an identifier, it's just the string and
6657- 每一个转场都有一个验证程序,这只是一个字符串且
6657+ 每一个转场都有一个标识符,这只是一个字符串
66586658
665966591604
6660666001:11:56,745 --> 01:12:00,013
66616661that identifier is what's you're gonna use in your code
6662- 这个验证程序是你在代码中要用到的
6662+ 这个标识符是你在代码中
66636663
666466641605
6665666501:12:00,082 --> 01:12:02,649
66666666to talk about this segue.
6667- 与转场进行互动
6667+ 用来与转场进行互动的
66686668
666966691606
6670667001:12:02,718 --> 01:12:04,252
@@ -6684,32 +6684,32 @@ So always set that.
668466841609
6685668501:12:08,457 --> 01:12:09,223
66866686And you wanna set it,
6687- 且你会想要放置它的,
6687+ 且你会想要放置一个
66886688
668966891610
6690669001:12:09,291 --> 01:12:12,059
66916691the identifier to be something that kind of says what is
6692- 这个验证程序就好比像是在告诉你
6692+ 不言而喻的标识符
66936693
669466941611
6695669501:12:12,128 --> 01:12:12,660
66966696segue does.
6697- 转场的作用是什么
6697+ 说明转场的作用是什么
66986698
669966991612
6700670001:12:12,729 --> 01:12:14,995
67016701So in this case it shows a graph, so
6702- 所以在这里展示了一个图像,那么
6702+ 这种情况它是展示了一个图像
67036703
670467041613
6705670501:12:15,064 --> 01:12:16,764
67066706I call this show graph.
6707- 我称之为图像显示
6707+ 那么我称之为 Show Graph
67086708
670967091614
6710671001:12:19,802 --> 01:12:22,236
67116711That's how you set up your segue.
6712- 这就是你如何放置转场效果
6712+ 这就是你如何设置转场效果
67136713
671467141615
6715671501:12:22,304 --> 01:12:24,204
@@ -6724,42 +6724,42 @@ If you have a navigation controller and
672467241617
6725672501:12:25,742 --> 01:12:28,209
67266726you have a button that causes another card to slide on you
6727- 你有一个按钮能让另一个页面被滑动
6727+ 你有一个按钮让另一个页面滑进来
67286728
672967291618
6730673001:12:28,278 --> 01:12:30,445
67316731just control drag from that button to the other MVC.
6732- 只需按住control然后从按钮中拖拽到其它的MVC
6732+ 只需按住 control 后从按钮拖拽到其它 MVC
67336733
673467341619
6735673501:12:30,513 --> 01:12:33,915
67366736And then you use a show segue, and it'll just work.
6737- 然后你用到了转场展示,然后就完成了
6737+ 接着选择用 Show 转场展示,这样就完成了
67386738
673967391620
6740674001:12:33,983 --> 01:12:35,049
67416741Has to be all inside,
6742- 所有的都应该在这了,
6742+ 不过必须要在导航控制器里面
67436743
674467441621
6745674501:12:35,117 --> 01:12:37,751
67466746embedded in navigation controller, of course.
6747- 导航控制器,当然
6747+ 当然嵌套到导航控制器才行
67486748
674967491622
6750675001:12:37,820 --> 01:12:39,720
67516751So what can you do with these identifiers?
6752- 所以你可以用这些验证程序来做什么呢 ?
6752+ 所以你可以用这些标识符来做什么呢 ?
67536753
675467541623
6755675501:12:39,789 --> 01:12:42,457
67566756It is actually possible to cause a segue to happen from
6757- 这个(验证程序)能真正的实现转场效果通过
6757+ 其实代码能用这个标识符实现转场
67586758
675967591624
6760676001:12:42,525 --> 01:12:45,425
67616761code, with performSegue withIdentifier, but
6762- 代码的方式,with performSegue withIdentifier,但
6762+ 使用的是 performSegue( withIdentifier: ) 方法
67636763
676467641625
6765676501: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.
676967691626
6770677001:12:48,030 --> 01:12:49,329
67716771We always gonna have buttons,
6772- 我们总是会有多个按钮,
6772+ 我们总是会通过按钮实现
67736773
677467741627
6775677501:12:49,398 --> 01:12:50,764
67766776well I'm not gonna say we're never gonna do that,
6777- 好吧我不应该说我们永远也不会用到,
6777+ 好吧我不应该说我们永远也不会用到
67786778
677967791628
6780678001:12:50,833 --> 01:12:52,767
67816781but we won't be doing that in your assignment three,
6782- 但我们在第三节课程中还暂时不会用到,
6782+ 但我们在作业三中还暂时不会用到
67836783
678467841629
6785678501:12:52,835 --> 01:12:53,267
@@ -6789,22 +6789,22 @@ that's for sure.
678967891630
6790679001:12:53,336 --> 01:12:54,301
67916791It's pretty rare.
6792- 这非常重要
6792+ 很少会这样做
67936793
679467941631
6795679501:12:54,370 --> 01:12:56,303
67966796But you can do it with performSegue.
6797- 但你可以通过performSegue来做
6797+ 但你可以通过 performSegue 实现
67986798
679967991632
6800680001:12:56,372 --> 01:12:59,006
68016801But the more important use of the identifier is not causing
6802- 在使用验证程序中更重要的用法不是仅仅实现
6802+ 标识符最重要的用法不是实现转场
68036803
680468041633
6805680501:12:59,075 --> 01:13:00,774
68066806segues to happen cuz segues kinda happen
6807- 转场因为转场效果的实现是
6807+ 因为转场效果的实现是
68086808
680968091634
6810681001:13:00,843 --> 01:13:02,643
@@ -6814,32 +6814,32 @@ automatically when the buttons are pressed.
681468141635
6815681501:13:02,712 --> 01:13:04,645
68166816It's to prepare for a segue.
6817- 这是为转场准备的
6817+ 它的目的是为转场做准备
68186818
681968191636
6820682001:13:04,714 --> 01:13:08,148
68216821This is the most important method in all of
6822- 这是最重要的方法在所有的
6822+ prepare ( for segue: ) 是所有方法中
68236823
682468241637
6825682501:13:08,217 --> 01:13:11,552
68266826multiple MVC programming is this preparing for segue
6827- 多点MVC编程中,这是为转场准备的
6827+ 实现多个 MVC 编程的最重要的方法
68286828
682968291638
6830683001:13:11,620 --> 01:13:15,489
68316831method which I'm gonna show you in a moment here, okay.
6832- 方法接下来我将要向你们在这展示下,
6832+ 之后我将要在这向你们展示下
68336833
683468341639
6835683501:13:15,558 --> 01:13:18,058
68366836And remember, we're all segueing to a new MVC
6837- 别忘了,我们都通过转场到新的MVC
6837+ 别忘了,我们总是转场到新的 MVC
68386838
683968391640
6840684001:13:18,127 --> 01:13:20,227
68416841freshly created, so it's always raw.
6842- 新建,那么它总是
6842+ 全新的,未加处理的
68436843
684468441641
6845684501:13:20,296 --> 01:13:22,830
@@ -6854,22 +6854,22 @@ Here is the method.
685468541643
6855685501:13:25,534 --> 01:13:27,334
68566856It's called prepare for segue, and
6857- 这称作为准备转场,且
6857+ prepare ( for segue: ) , 准备转场
68586858
685968591644
6860686001:13:27,403 --> 01:13:30,972
68616861it also has a sender argument right there.
6862- 这里还有一个传送协议
6862+ 同时还有 sender 参数,表示发起转场的实例
68636863
686468641645
6865686501:13:31,040 --> 01:13:34,375
68666866The segue that's passed along that first argument
6867- 转场效果要通过的第一个协议
6867+ 作为第一个参数的转场 segue
68686868
686968691646
6870687001:13:34,444 --> 01:13:37,611
68716871is just a little container that contains interesting
6872- 只是一个小的容器其包含了有趣的
6872+ 只是一个容器,其中包含了
68736873
687468741647
6875687501:13:37,680 --> 01:13:39,613
@@ -6879,22 +6879,22 @@ information about the segue.
687968791648
6880688001:13:39,682 --> 01:13:42,049
68816881For example, the identifier, Show Graph.
6882- 例如,验证程序,图像显示
6882+ 例如标识符(这里是 "Show Graph")
68836883
688468841649
6885688501:13:43,585 --> 01:13:47,187
68866886And very importantly, the controller that you're seguing
6887- 然后很重要的一个地方,你用于转场的控制器
6887+ 然后很重要的,转场到的目标控制器
68886888
688968891650
6890689001:13:47,256 --> 01:13:48,455
68916891too, because the whole point is here,
6892- 也是重点,因为整个知识点就在这,
6892+ 你为这个方法的作用
68936893
689468941651
6895689501:13:48,524 --> 01:13:51,292
68966896you're suppose to be preparing this MVC that's going to
6897- 你最好准备好这个MVC让它能
6897+ 就是让目标 MVC 准备好
68986898
689968991652
6900690001:13:51,360 --> 01:13:52,593
@@ -6904,22 +6904,22 @@ come on screen.
690469041653
6905690501:13:52,661 --> 01:13:53,794
69066906To do its job so
6907- 为了能让其运作那么
6907+ 完成它的工作
69086908
690969091654
6910691001:13:53,862 --> 01:13:57,431
69116911you get that thing from this little segue object.
6912- 你要从这个小转场对象中得到那个东西( )
6912+ 所以我们要从 segue 中得到目标控制器
69136913
691469141655
6915691501:13:57,499 --> 01:14:00,301
69166916The sender is kinda like buttons,
6917- 传感器有点像按钮,
6917+ sender 就是像按钮一类的
69186918
691969191656
6920692001:14:00,370 --> 01:14:02,636
69216921the button sender when we had the action there.
6922- 当我们有动作行为时按钮传感器
6922+ 我们按下去来转场的按钮
69236923
692469241657
6925692501:14:02,705 --> 01:14:05,505
0 commit comments