@@ -6643,28 +6643,28 @@ that thing and inspect it.
6643
6643
6644
6644
1601
6645
6645
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
+ 因为你会想要设置这里的
6648
6648
6649
6649
1602
6650
6650
01:11:52,242 --> 01:11:53,841
6651
6651
is the identifier.
6652
- 是验证程序
6652
+ identifier,标识符
6653
6653
6654
6654
1603
6655
6655
01:11:53,910 --> 01:11:56,677
6656
6656
Every segue has an identifier, it's just the string and
6657
- 每一个转场都有一个验证程序,这只是一个字符串且
6657
+ 每一个转场都有一个标识符,这只是一个字符串
6658
6658
6659
6659
1604
6660
6660
01:11:56,745 --> 01:12:00,013
6661
6661
that identifier is what's you're gonna use in your code
6662
- 这个验证程序是你在代码中要用到的
6662
+ 这个标识符是你在代码中
6663
6663
6664
6664
1605
6665
6665
01:12:00,082 --> 01:12:02,649
6666
6666
to talk about this segue.
6667
- 与转场进行互动
6667
+ 用来与转场进行互动的
6668
6668
6669
6669
1606
6670
6670
01:12:02,718 --> 01:12:04,252
@@ -6684,32 +6684,32 @@ So always set that.
6684
6684
1609
6685
6685
01:12:08,457 --> 01:12:09,223
6686
6686
And you wanna set it,
6687
- 且你会想要放置它的,
6687
+ 且你会想要放置一个
6688
6688
6689
6689
1610
6690
6690
01:12:09,291 --> 01:12:12,059
6691
6691
the identifier to be something that kind of says what is
6692
- 这个验证程序就好比像是在告诉你
6692
+ 不言而喻的标识符
6693
6693
6694
6694
1611
6695
6695
01:12:12,128 --> 01:12:12,660
6696
6696
segue does.
6697
- 转场的作用是什么
6697
+ 说明转场的作用是什么
6698
6698
6699
6699
1612
6700
6700
01:12:12,729 --> 01:12:14,995
6701
6701
So in this case it shows a graph, so
6702
- 所以在这里展示了一个图像,那么
6702
+ 这种情况它是展示了一个图像
6703
6703
6704
6704
1613
6705
6705
01:12:15,064 --> 01:12:16,764
6706
6706
I call this show graph.
6707
- 我称之为图像显示
6707
+ 那么我称之为 Show Graph
6708
6708
6709
6709
1614
6710
6710
01:12:19,802 --> 01:12:22,236
6711
6711
That's how you set up your segue.
6712
- 这就是你如何放置转场效果
6712
+ 这就是你如何设置转场效果
6713
6713
6714
6714
1615
6715
6715
01:12:22,304 --> 01:12:24,204
@@ -6724,42 +6724,42 @@ If you have a navigation controller and
6724
6724
1617
6725
6725
01:12:25,742 --> 01:12:28,209
6726
6726
you have a button that causes another card to slide on you
6727
- 你有一个按钮能让另一个页面被滑动
6727
+ 你有一个按钮让另一个页面滑进来
6728
6728
6729
6729
1618
6730
6730
01:12:28,278 --> 01:12:30,445
6731
6731
just control drag from that button to the other MVC.
6732
- 只需按住control然后从按钮中拖拽到其它的MVC
6732
+ 只需按住 control 后从按钮拖拽到其它 MVC
6733
6733
6734
6734
1619
6735
6735
01:12:30,513 --> 01:12:33,915
6736
6736
And then you use a show segue, and it'll just work.
6737
- 然后你用到了转场展示,然后就完成了
6737
+ 接着选择用 Show 转场展示,这样就完成了
6738
6738
6739
6739
1620
6740
6740
01:12:33,983 --> 01:12:35,049
6741
6741
Has to be all inside,
6742
- 所有的都应该在这了,
6742
+ 不过必须要在导航控制器里面
6743
6743
6744
6744
1621
6745
6745
01:12:35,117 --> 01:12:37,751
6746
6746
embedded in navigation controller, of course.
6747
- 导航控制器,当然
6747
+ 当然嵌套到导航控制器才行
6748
6748
6749
6749
1622
6750
6750
01:12:37,820 --> 01:12:39,720
6751
6751
So what can you do with these identifiers?
6752
- 所以你可以用这些验证程序来做什么呢 ?
6752
+ 所以你可以用这些标识符来做什么呢 ?
6753
6753
6754
6754
1623
6755
6755
01:12:39,789 --> 01:12:42,457
6756
6756
It is actually possible to cause a segue to happen from
6757
- 这个(验证程序)能真正的实现转场效果通过
6757
+ 其实代码能用这个标识符实现转场
6758
6758
6759
6759
1624
6760
6760
01:12:42,525 --> 01:12:45,425
6761
6761
code, with performSegue withIdentifier, but
6762
- 代码的方式,with performSegue withIdentifier,但
6762
+ 使用的是 performSegue( withIdentifier: ) 方法
6763
6763
6764
6764
1625
6765
6765
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.
6769
6769
1626
6770
6770
01:12:48,030 --> 01:12:49,329
6771
6771
We always gonna have buttons,
6772
- 我们总是会有多个按钮,
6772
+ 我们总是会通过按钮实现
6773
6773
6774
6774
1627
6775
6775
01:12:49,398 --> 01:12:50,764
6776
6776
well I'm not gonna say we're never gonna do that,
6777
- 好吧我不应该说我们永远也不会用到,
6777
+ 好吧我不应该说我们永远也不会用到
6778
6778
6779
6779
1628
6780
6780
01:12:50,833 --> 01:12:52,767
6781
6781
but we won't be doing that in your assignment three,
6782
- 但我们在第三节课程中还暂时不会用到,
6782
+ 但我们在作业三中还暂时不会用到
6783
6783
6784
6784
1629
6785
6785
01:12:52,835 --> 01:12:53,267
@@ -6789,22 +6789,22 @@ that's for sure.
6789
6789
1630
6790
6790
01:12:53,336 --> 01:12:54,301
6791
6791
It's pretty rare.
6792
- 这非常重要
6792
+ 很少会这样做
6793
6793
6794
6794
1631
6795
6795
01:12:54,370 --> 01:12:56,303
6796
6796
But you can do it with performSegue.
6797
- 但你可以通过performSegue来做
6797
+ 但你可以通过 performSegue 实现
6798
6798
6799
6799
1632
6800
6800
01:12:56,372 --> 01:12:59,006
6801
6801
But the more important use of the identifier is not causing
6802
- 在使用验证程序中更重要的用法不是仅仅实现
6802
+ 标识符最重要的用法不是实现转场
6803
6803
6804
6804
1633
6805
6805
01:12:59,075 --> 01:13:00,774
6806
6806
segues to happen cuz segues kinda happen
6807
- 转场因为转场效果的实现是
6807
+ 因为转场效果的实现是
6808
6808
6809
6809
1634
6810
6810
01:13:00,843 --> 01:13:02,643
@@ -6814,32 +6814,32 @@ automatically when the buttons are pressed.
6814
6814
1635
6815
6815
01:13:02,712 --> 01:13:04,645
6816
6816
It's to prepare for a segue.
6817
- 这是为转场准备的
6817
+ 它的目的是为转场做准备
6818
6818
6819
6819
1636
6820
6820
01:13:04,714 --> 01:13:08,148
6821
6821
This is the most important method in all of
6822
- 这是最重要的方法在所有的
6822
+ prepare ( for segue: ) 是所有方法中
6823
6823
6824
6824
1637
6825
6825
01:13:08,217 --> 01:13:11,552
6826
6826
multiple MVC programming is this preparing for segue
6827
- 多点MVC编程中,这是为转场准备的
6827
+ 实现多个 MVC 编程的最重要的方法
6828
6828
6829
6829
1638
6830
6830
01:13:11,620 --> 01:13:15,489
6831
6831
method which I'm gonna show you in a moment here, okay.
6832
- 方法接下来我将要向你们在这展示下,
6832
+ 之后我将要在这向你们展示下
6833
6833
6834
6834
1639
6835
6835
01:13:15,558 --> 01:13:18,058
6836
6836
And remember, we're all segueing to a new MVC
6837
- 别忘了,我们都通过转场到新的MVC
6837
+ 别忘了,我们总是转场到新的 MVC
6838
6838
6839
6839
1640
6840
6840
01:13:18,127 --> 01:13:20,227
6841
6841
freshly created, so it's always raw.
6842
- 新建,那么它总是
6842
+ 全新的,未加处理的
6843
6843
6844
6844
1641
6845
6845
01:13:20,296 --> 01:13:22,830
@@ -6854,22 +6854,22 @@ Here is the method.
6854
6854
1643
6855
6855
01:13:25,534 --> 01:13:27,334
6856
6856
It's called prepare for segue, and
6857
- 这称作为准备转场,且
6857
+ prepare ( for segue: ) , 准备转场
6858
6858
6859
6859
1644
6860
6860
01:13:27,403 --> 01:13:30,972
6861
6861
it also has a sender argument right there.
6862
- 这里还有一个传送协议
6862
+ 同时还有 sender 参数,表示发起转场的实例
6863
6863
6864
6864
1645
6865
6865
01:13:31,040 --> 01:13:34,375
6866
6866
The segue that's passed along that first argument
6867
- 转场效果要通过的第一个协议
6867
+ 作为第一个参数的转场 segue
6868
6868
6869
6869
1646
6870
6870
01:13:34,444 --> 01:13:37,611
6871
6871
is just a little container that contains interesting
6872
- 只是一个小的容器其包含了有趣的
6872
+ 只是一个容器,其中包含了
6873
6873
6874
6874
1647
6875
6875
01:13:37,680 --> 01:13:39,613
@@ -6879,22 +6879,22 @@ information about the segue.
6879
6879
1648
6880
6880
01:13:39,682 --> 01:13:42,049
6881
6881
For example, the identifier, Show Graph.
6882
- 例如,验证程序,图像显示
6882
+ 例如标识符(这里是 "Show Graph")
6883
6883
6884
6884
1649
6885
6885
01:13:43,585 --> 01:13:47,187
6886
6886
And very importantly, the controller that you're seguing
6887
- 然后很重要的一个地方,你用于转场的控制器
6887
+ 然后很重要的,转场到的目标控制器
6888
6888
6889
6889
1650
6890
6890
01:13:47,256 --> 01:13:48,455
6891
6891
too, because the whole point is here,
6892
- 也是重点,因为整个知识点就在这,
6892
+ 你为这个方法的作用
6893
6893
6894
6894
1651
6895
6895
01:13:48,524 --> 01:13:51,292
6896
6896
you're suppose to be preparing this MVC that's going to
6897
- 你最好准备好这个MVC让它能
6897
+ 就是让目标 MVC 准备好
6898
6898
6899
6899
1652
6900
6900
01:13:51,360 --> 01:13:52,593
@@ -6904,22 +6904,22 @@ come on screen.
6904
6904
1653
6905
6905
01:13:52,661 --> 01:13:53,794
6906
6906
To do its job so
6907
- 为了能让其运作那么
6907
+ 完成它的工作
6908
6908
6909
6909
1654
6910
6910
01:13:53,862 --> 01:13:57,431
6911
6911
you get that thing from this little segue object.
6912
- 你要从这个小转场对象中得到那个东西( )
6912
+ 所以我们要从 segue 中得到目标控制器
6913
6913
6914
6914
1655
6915
6915
01:13:57,499 --> 01:14:00,301
6916
6916
The sender is kinda like buttons,
6917
- 传感器有点像按钮,
6917
+ sender 就是像按钮一类的
6918
6918
6919
6919
1656
6920
6920
01:14:00,370 --> 01:14:02,636
6921
6921
the button sender when we had the action there.
6922
- 当我们有动作行为时按钮传感器
6922
+ 我们按下去来转场的按钮
6923
6923
6924
6924
1657
6925
6925
01:14:02,705 --> 01:14:05,505
0 commit comments