1
00:00:04,990 --> 00:00:09,900
Come back again on this list then they're going to talk about the delegate method of a school of you.

2
00:00:09,910 --> 00:00:13,320
And there's so many of them and they do a lot of different things for us.

3
00:00:13,360 --> 00:00:17,620
So it really helps if you get some sort of familiarity with what is available to you.

4
00:00:17,650 --> 00:00:18,910
So let's going to school.

5
00:00:18,960 --> 00:00:26,470
I mean you know I'm going to start a new application called school your they get methods and my delegate

6
00:00:26,470 --> 00:00:31,780
matters like always I'm going to have one scroll of you in my storyboard so you know I'm going to go

7
00:00:31,780 --> 00:00:38,250
ahead and say Give me a you scroll view that U.S.-Korea I'm going to place it somewhere in here.

8
00:00:38,260 --> 00:00:45,190
Is has a different background color such as that one and it has the full constrains as of.

9
00:00:45,280 --> 00:00:47,080
Again none of these are mandatory.

10
00:00:47,080 --> 00:00:49,210
You don't have to have these particular ones.

11
00:00:49,320 --> 00:00:51,580
It helps to have some sort of constraints.

12
00:00:51,730 --> 00:00:57,760
So in here I'm going to add an outlet for it so that outlet is going to be my escrowed of you.

13
00:00:57,760 --> 00:01:04,540
So in here I'm going to call it my scroll view within the outlets and connect and that's all I have

14
00:01:04,540 --> 00:01:05,360
to do in here.

15
00:01:05,560 --> 00:01:07,020
The school back to us woofed fine.

16
00:01:07,020 --> 00:01:09,930
I mean here the first thing I want to do is I want to sit.

17
00:01:09,960 --> 00:01:12,850
It's the height of the content size of it.

18
00:01:12,850 --> 00:01:14,090
A little bit larger.

19
00:01:14,260 --> 00:01:16,320
So you can actually scroll it.

20
00:01:16,330 --> 00:01:24,850
So I'm going to say my school the art in the view with the art content size becomes CGI size of the

21
00:01:24,850 --> 00:01:32,470
values I want to give it are these I want to say there is 600 and the height is 1800 or something like

22
00:01:32,470 --> 00:01:37,860
that something that is really large and makes the scroll of you scroll essentially.

23
00:01:38,050 --> 00:01:39,590
So now they have that.

24
00:01:39,610 --> 00:01:45,340
I'm going to have to use the delegate method and to do that I'm going to say my score of you delegates

25
00:01:45,340 --> 00:01:49,590
to here and that is a you I ask all of you delegates protocol.

26
00:01:49,680 --> 00:01:56,200
So I'm going to say delegate yourself I'm going to use the protocol called you by a score of your delegates

27
00:01:56,230 --> 00:01:57,360
for the golden year.

28
00:01:57,430 --> 00:02:02,500
I know I have access to a whole host of different methods that they can use for a scrolling.

29
00:02:02,500 --> 00:02:08,350
For instance I could go in here and say there is a method in the delegate that tells me when something

30
00:02:08,350 --> 00:02:09,290
is scrotes.

31
00:02:09,450 --> 00:02:10,890
So this is going to be called.

32
00:02:10,930 --> 00:02:13,310
It's cruel of you.

33
00:02:13,510 --> 00:02:14,960
Let me find it.

34
00:02:14,990 --> 00:02:16,230
Did a scroll.

35
00:02:16,390 --> 00:02:19,160
So that's the one that I want to use the very first one.

36
00:02:19,180 --> 00:02:21,070
I mean you know I'm not going to really do anything.

37
00:02:21,070 --> 00:02:22,200
I'm just going to print it.

38
00:02:22,210 --> 00:02:24,450
I'm going to say prints.

39
00:02:24,560 --> 00:02:28,750
They want to print is actually this title because there's going to be a few of them and I don't want

40
00:02:28,750 --> 00:02:30,030
to waste a lot of time on it.

41
00:02:30,190 --> 00:02:34,630
So the first one is this when this all the schools are going to print that for me.

42
00:02:34,630 --> 00:02:35,310
Let's see what that is.

43
00:02:35,320 --> 00:02:39,580
We have a scroll of you we have to begin dragging.

44
00:02:39,620 --> 00:02:41,820
We did and try again.

45
00:02:41,830 --> 00:02:47,980
I'm guessing some somewhere did end decelerating which is actually a very useful one because it tells

46
00:02:47,980 --> 00:02:54,760
us that it does sort of ration has ended on the of you has a stop essentially and then let me use a

47
00:02:54,760 --> 00:02:55,410
few of them.

48
00:02:55,420 --> 00:03:00,150
I'm going to say it is a did and dragging this the one that we use here.

49
00:03:00,400 --> 00:03:04,330
And the dragon does someone that use their ends dragging the scroll of you.

50
00:03:04,480 --> 00:03:11,740
I tells us that it actually happened so I'm going to copy that say S-curve you did and dragonets one

51
00:03:11,890 --> 00:03:17,590
and one that was another one which is essentially telling me when they use that is about to begin dragging.

52
00:03:17,590 --> 00:03:21,420
So his call will begin dragging.

53
00:03:21,730 --> 00:03:28,300
And in here of course I'm going to go ahead and print the same thing a scroll view will begin dragging.

54
00:03:28,450 --> 00:03:35,320
Now pay attention that some of these methods such as score review did a screw or even begin dragging.

55
00:03:35,440 --> 00:03:36,660
They don't have any arguments.

56
00:03:36,660 --> 00:03:39,720
They only know which scroll view you're asking for.

57
00:03:39,910 --> 00:03:43,620
And since I only have one scroll of view I don't really care about that part.

58
00:03:43,810 --> 00:03:51,580
However this other one for instance has an argument built into it that says decelerates bullion van

59
00:03:51,600 --> 00:03:53,230
the dragging is ending.

60
00:03:53,260 --> 00:03:55,810
Is it going to decelerate or not.

61
00:03:55,810 --> 00:04:03,760
So I'm actually going to go out a little statement and say if it is decelerating it is about to a stop

62
00:04:04,150 --> 00:04:10,560
let's just print is slowing down slowing down.

63
00:04:10,870 --> 00:04:17,260
So that's the all of is in practice I'm going to run the application and once I run it I should be able

64
00:04:17,260 --> 00:04:18,960
to see every time I scroll.

65
00:04:19,210 --> 00:04:24,590
Every time I begin writing as well as every time I enter.

66
00:04:24,700 --> 00:04:30,130
So let's have my Castleview up here a little bit longer let's clear everything in it.

67
00:04:30,130 --> 00:04:36,360
I'm going to go in here and I'm going to tap and write and it says school you really begin dying.

68
00:04:36,370 --> 00:04:38,250
That was the first thing that happened.

69
00:04:38,370 --> 00:04:39,470
Let's see it again.

70
00:04:39,550 --> 00:04:41,700
A tap and I did a little bit.

71
00:04:41,800 --> 00:04:47,170
It says the school of you will begin writing and then it says it's going to get a scroll because as

72
00:04:47,170 --> 00:04:52,330
long as on the scoring that is going to be printing and then it's going to say a score of you did.

73
00:04:52,360 --> 00:04:55,150
And the dragging that happened right at the end.

74
00:04:55,150 --> 00:04:57,310
So far we haven't seen that deceleration.

75
00:04:57,340 --> 00:04:59,600
Let's see how we can investigate that.

76
00:04:59,620 --> 00:05:02,890
We're going to use it like that and hear something in between.

77
00:05:02,890 --> 00:05:07,630
I saw deceleration happening is slowing down that seat once again.

78
00:05:07,660 --> 00:05:14,760
Look at the mouse movement that I produce or the top room and I drag and I let go I can let's go on

79
00:05:14,770 --> 00:05:15,940
Sunday in the middle.

80
00:05:15,940 --> 00:05:20,230
The moment they let go because I'm just stopping the dragging.

81
00:05:20,260 --> 00:05:24,140
It says Well from this point on we will decelerate.

82
00:05:24,190 --> 00:05:26,900
It's slowing down now.

83
00:05:26,920 --> 00:05:33,910
Now keep in mind that this doesn't mean the score of you has finished because as you can see I see this

84
00:05:34,070 --> 00:05:35,370
slowing down.

85
00:05:35,380 --> 00:05:39,630
We still have this scroll of your Discordian school disco discord.

86
00:05:39,700 --> 00:05:43,270
This isn't the end of the process of the scrolling.

87
00:05:43,270 --> 00:05:47,700
So for instance if you wanted to know the score you ended scrolling.

88
00:05:47,830 --> 00:05:51,330
And that's called that decelerating.

89
00:05:51,340 --> 00:05:57,650
So when it is decelerating it's music this is slowing down and of the ends of the celebrating.

90
00:05:57,730 --> 00:05:59,140
It means that they're stopped.

91
00:05:59,200 --> 00:06:03,150
I'm going to type that in here and say it's as now.

92
00:06:03,320 --> 00:06:04,310
It's right again.

93
00:06:04,510 --> 00:06:09,160
And that's the end of the dissertation and sometimes it becomes important that you want to know when

94
00:06:09,160 --> 00:06:12,460
you're user ends using the scroll.

95
00:06:12,550 --> 00:06:17,830
So I'm going to clear everything out say a scroll and now the very end.

96
00:06:17,850 --> 00:06:19,170
It's stopped.

97
00:06:19,180 --> 00:06:27,520
So once again if I like just a little bit and then the moment it stops it says this stopped again this

98
00:06:27,520 --> 00:06:29,060
way all the way.

99
00:06:29,260 --> 00:06:30,600
It says it has stopped now.

100
00:06:30,610 --> 00:06:34,980
So up until this point it was still moving just a tiny bit.

101
00:06:35,050 --> 00:06:39,160
So that's an introduction on how to use the score view delegate method.

102
00:06:39,160 --> 00:06:40,920
There's so many many of them.

103
00:06:40,990 --> 00:06:44,470
I actually recommend that you have a look at the header file in here.

104
00:06:44,510 --> 00:06:46,110
Here jump to the finish line.

105
00:06:46,210 --> 00:06:49,570
And in here I'm going to say all the delegate matters are here.

106
00:06:49,580 --> 00:06:54,480
We'll begin this aerating deed and decelerating S-curve you did.

107
00:06:54,520 --> 00:06:57,060
And the dragging is all you.

108
00:06:57,280 --> 00:06:58,770
Get an animation.

109
00:06:58,790 --> 00:07:00,490
I'm not sure what does that one do.

110
00:07:00,490 --> 00:07:04,810
It says call Kalt when the content of said the score of your visit with an inmate that finishes.

111
00:07:04,930 --> 00:07:07,340
So that's when we actually run an animation on it.

112
00:07:07,360 --> 00:07:12,550
That's something I'm going to show you in another lesson but I didn't know that there is a there's a

113
00:07:12,550 --> 00:07:15,660
delicate metal to know when God has finished.

114
00:07:15,700 --> 00:07:20,040
So that's interesting I'll try to embed this into the upcoming lesson as well.

115
00:07:20,290 --> 00:07:23,240
And then for resuming we'll see it in the next lesson.

116
00:07:23,260 --> 00:07:28,210
And there's so many other ones in here so it really helps if you have a look at these and get to at

117
00:07:28,210 --> 00:07:30,990
least familiarize yourself with what is possible.

118
00:07:30,990 --> 00:07:31,930
Not necessarily.

119
00:07:31,930 --> 00:07:37,060
You're not going to use them in the next you know application or so but it helps if you know they actually

120
00:07:37,060 --> 00:07:38,080
exist.

121
00:07:38,080 --> 00:07:41,980
So with that in mind this movement for zooming in on next lesson.
