Skip to content

Commit 1c15fbc

Browse files
authored
translated at 1656
translated at 1656 problem at 1504 - 1506,1607,1621,1637,1640,1654
1 parent 0733e2a commit 1c15fbc

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

subtitles/5. Gestures and Multiple MVCs.srt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6637,226 +6637,282 @@ that thing and inspect it.
66376637
1601
66386638
01:11:49,239 --> 01:11:52,173
66396639
Cuz you don't wanna set this thing right here which
6640+
因为你不想要将这东西放置在此因为
66406641

66416642
1602
66426643
01:11:52,242 --> 01:11:53,841
66436644
is the identifier.
6645+
是验证程序
66446646

66456647
1603
66466648
01:11:53,910 --> 01:11:56,677
66476649
Every segue has an identifier, it's just the string and
6650+
每一个转场都有一个验证程序,这只是一个字符串且
66486651

66496652
1604
66506653
01:11:56,745 --> 01:12:00,013
66516654
that identifier is what's you're gonna use in your code
6655+
这个验证程序是你在代码中要用到的
66526656

66536657
1605
66546658
01:12:00,082 --> 01:12:02,649
66556659
to talk about this segue.
6660+
与转场进行互动
66566661

66576662
1606
66586663
01:12:02,718 --> 01:12:04,252
66596664
And I'll talk about what you've
6665+
接下来我要谈到的是你们之前
66606666

66616667
1607
66626668
01:12:04,320 --> 01:12:07,120
66636669
been talk about regarding segues, any moment here.
6670+
已经谈论过的 转场,任何时候
66646671

66656672
1608
66666673
01:12:07,189 --> 01:12:08,389
66676674
So always set that.
6675+
所以总是需要放置它
66686676

66696677
1609
66706678
01:12:08,457 --> 01:12:09,223
66716679
And you wanna set it,
6680+
且你会想要放置它的,
66726681

66736682
1610
66746683
01:12:09,291 --> 01:12:12,059
66756684
the identifier to be something that kind of says what is
6685+
这个验证程序就好比像是在告诉你
66766686

66776687
1611
66786688
01:12:12,128 --> 01:12:12,660
66796689
segue does.
6690+
转场的作用是什么
66806691

66816692
1612
66826693
01:12:12,729 --> 01:12:14,995
66836694
So in this case it shows a graph, so
6695+
所以在这里展示了一个图像,那么
66846696

66856697
1613
66866698
01:12:15,064 --> 01:12:16,764
66876699
I call this show graph.
6700+
我称之为图像显示
66886701

66896702
1614
66906703
01:12:19,802 --> 01:12:22,236
66916704
That's how you set up your segue.
6705+
这就是你如何放置转场效果
66926706

66936707
1615
66946708
01:12:22,304 --> 01:12:24,204
66956709
And that's true for navigation controller as well.
6710+
同样也适用于导航控制器
66966711

66976712
1616
66986713
01:12:24,273 --> 01:12:25,673
66996714
If you have a navigation controller and
6715+
如果你有一个导航控制器且
67006716

67016717
1617
67026718
01:12:25,742 --> 01:12:28,209
67036719
you have a button that causes another card to slide on you
6720+
你有一个按钮能让另一个页面被滑动
67046721

67056722
1618
67066723
01:12:28,278 --> 01:12:30,445
67076724
just control drag from that button to the other MVC.
6725+
只需按住control然后从按钮中拖拽到其它的MVC
67086726

67096727
1619
67106728
01:12:30,513 --> 01:12:33,915
67116729
And then you use a show segue, and it'll just work.
6730+
然后你用到了转场展示,然后就完成了
67126731

67136732
1620
67146733
01:12:33,983 --> 01:12:35,049
67156734
Has to be all inside,
6735+
所有的都应该在这了,
67166736

67176737
1621
67186738
01:12:35,117 --> 01:12:37,751
67196739
embedded in navigation controller, of course.
6740+
导航控制器,当然
67206741

67216742
1622
67226743
01:12:37,820 --> 01:12:39,720
67236744
So what can you do with these identifiers?
6745+
所以你可以用这些验证程序来做什么呢?
67246746

67256747
1623
67266748
01:12:39,789 --> 01:12:42,457
67276749
It is actually possible to cause a segue to happen from
6750+
这个(验证程序)能真正的实现转场效果通过
67286751

67296752
1624
67306753
01:12:42,525 --> 01:12:45,425
67316754
code, with performSegue withIdentifier, but
6755+
代码的方式,with performSegue withIdentifier,但
67326756

67336757
1625
67346758
01:12:45,494 --> 01:12:47,961
67356759
I'm not gonna talk about that, cuz we're never gonna do that.
6760+
我并不打算讨论那些,因为我们永远也不会用到
67366761

67376762
1626
67386763
01:12:48,030 --> 01:12:49,329
67396764
We always gonna have buttons,
6765+
我们总是会有多个按钮,
67406766

67416767
1627
67426768
01:12:49,398 --> 01:12:50,764
67436769
well I'm not gonna say we're never gonna do that,
6770+
好吧我不应该说我们永远也不会用到,
67446771

67456772
1628
67466773
01:12:50,833 --> 01:12:52,767
67476774
but we won't be doing that in your assignment three,
6775+
但我们在第三节课程中还暂时不会用到,
67486776

67496777
1629
67506778
01:12:52,835 --> 01:12:53,267
67516779
that's for sure.
6780+
这是肯定的
67526781

67536782
1630
67546783
01:12:53,336 --> 01:12:54,301
67556784
It's pretty rare.
6785+
这非常重要
67566786

67576787
1631
67586788
01:12:54,370 --> 01:12:56,303
67596789
But you can do it with performSegue.
6790+
但你可以通过performSegue来做
67606791

67616792
1632
67626793
01:12:56,372 --> 01:12:59,006
67636794
But the more important use of the identifier is not causing
6795+
在使用验证程序中更重要的用法不是仅仅实现
67646796

67656797
1633
67666798
01:12:59,075 --> 01:13:00,774
67676799
segues to happen cuz segues kinda happen
6800+
转场因为转场效果的实现是
67686801

67696802
1634
67706803
01:13:00,843 --> 01:13:02,643
67716804
automatically when the buttons are pressed.
6805+
当按下按钮时自动实现的
67726806

67736807
1635
67746808
01:13:02,712 --> 01:13:04,645
67756809
It's to prepare for a segue.
6810+
这是为转场准备的
67766811

67776812
1636
67786813
01:13:04,714 --> 01:13:08,148
67796814
This is the most important method in all of
6815+
这是最重要的方法在所有的
67806816

67816817
1637
67826818
01:13:08,217 --> 01:13:11,552
67836819
multiple MVC programming is this preparing for segue
6820+
多点MVC编程中,这是为转场准备的
67846821

67856822
1638
67866823
01:13:11,620 --> 01:13:15,489
67876824
method which I'm gonna show you in a moment here, okay.
6825+
方法接下来我将要向你们在这展示下,
67886826

67896827
1639
67906828
01:13:15,558 --> 01:13:18,058
67916829
And remember, we're all segueing to a new MVC
6830+
别忘了,我们都通过转场到新的MVC
67926831

67936832
1640
67946833
01:13:18,127 --> 01:13:20,227
67956834
freshly created, so it's always raw.
6835+
新建,那么它总是
67966836

67976837
1641
67986838
01:13:20,296 --> 01:13:22,830
67996839
So we have to prepare it to do what it's going to do.
6840+
所以我们需要让其准备好我们要做的
68006841

68016842
1642
68026843
01:13:24,734 --> 01:13:25,466
68036844
Here is the method.
6845+
方法这样写
68046846

68056847
1643
68066848
01:13:25,534 --> 01:13:27,334
68076849
It's called prepare for segue, and
6850+
这称作为准备转场,且
68086851

68096852
1644
68106853
01:13:27,403 --> 01:13:30,972
68116854
it also has a sender argument right there.
6855+
这里还有一个传送协议
68126856

68136857
1645
68146858
01:13:31,040 --> 01:13:34,375
68156859
The segue that's passed along that first argument
6860+
转场效果要通过的第一个协议
68166861

68176862
1646
68186863
01:13:34,444 --> 01:13:37,611
68196864
is just a little container that contains interesting
6865+
只是一个小的容器其包含了有趣的
68206866

68216867
1647
68226868
01:13:37,680 --> 01:13:39,613
68236869
information about the segue.
6870+
关于转场的信息
68246871

68256872
1648
68266873
01:13:39,682 --> 01:13:42,049
68276874
For example, the identifier, Show Graph.
6875+
例如,验证程序,图像显示
68286876

68296877
1649
68306878
01:13:43,585 --> 01:13:47,187
68316879
And very importantly, the controller that you're seguing
6880+
然后很重要的一个地方,你用于转场的控制器
68326881

68336882
1650
68346883
01:13:47,256 --> 01:13:48,455
68356884
too, because the whole point is here,
6885+
也是重点,因为整个知识点就在这,
68366886

68376887
1651
68386888
01:13:48,524 --> 01:13:51,292
68396889
you're suppose to be preparing this MVC that's going to
6890+
你最好准备好这个MVC让它能
68406891

68416892
1652
68426893
01:13:51,360 --> 01:13:52,593
68436894
come on screen.
6895+
出现在屏幕上
68446896

68456897
1653
68466898
01:13:52,661 --> 01:13:53,794
68476899
To do its job so
6900+
为了能让其运作那么
68486901

68496902
1654
68506903
01:13:53,862 --> 01:13:57,431
68516904
you get that thing from this little segue object.
6905+
你要从这个小转场对象中得到那个东西( )
68526906

68536907
1655
68546908
01:13:57,499 --> 01:14:00,301
68556909
The sender is kinda like buttons,
6910+
传感器有点像按钮,
68566911

68576912
1656
68586913
01:14:00,370 --> 01:14:02,636
68596914
the button sender when we had the action there.
6915+
当我们有动作行为时按钮传感器
68606916

68616917
1657
68626918
01:14:02,705 --> 01:14:05,505

0 commit comments

Comments
 (0)