1
00:00:04,370 --> 00:00:06,710
I will start by creating.

2
00:00:07,460 --> 00:00:08,000
A new.

3
00:00:08,820 --> 00:00:09,680
iPhone five.

4
00:00:10,110 --> 00:00:23,490
I'll call it the doom and let's start by old thing by some guy, as is GM, and let's create our initially

5
00:00:23,490 --> 00:00:23,840
yard.

6
00:00:24,450 --> 00:00:25,650
It will be.

7
00:00:28,850 --> 00:00:38,960
Box, an empty one with size of eight and one and I will give it a key eight.

8
00:00:40,100 --> 00:00:43,490
Then we will create a calendar button.

9
00:00:44,580 --> 00:00:54,840
I'll give it exact date and finally I will create an input box and I'll give it a key.

10
00:00:56,110 --> 00:01:09,340
Ask and I'll give it a size 30 and one day and let's create two buttons, is she OK?

11
00:01:10,120 --> 00:01:19,360
And S g I'll cancel and let's create a window is the window to do.

12
00:01:20,500 --> 00:01:23,330
And I'll pass in the layout.

13
00:01:24,310 --> 00:01:27,850
Now let's wait hours while.

14
00:01:29,240 --> 00:01:34,970
Loop while true event, event and values.

15
00:01:35,850 --> 00:01:37,380
Will equal to Wendong.

16
00:01:40,220 --> 00:01:44,150
And then let's check if the event in.

17
00:01:47,170 --> 00:01:51,490
Cancel or is that when?

18
00:01:55,880 --> 00:01:56,720
We will break.

19
00:01:57,910 --> 00:01:59,770
And let's give this.

20
00:02:02,600 --> 00:02:07,380
And we have not put a comma in here.

21
00:02:07,400 --> 00:02:08,750
Let's run it again.

22
00:02:09,470 --> 00:02:09,710
OK.

23
00:02:10,900 --> 00:02:13,720
Now, when we choose a date by default.

24
00:02:17,700 --> 00:02:20,520
Button will set the text element.

25
00:02:21,760 --> 00:02:28,960
In the same room to the value of the day choosing, I will create a task.

26
00:02:32,120 --> 00:02:38,210
Car, for example, and when I press, OK, we should.

27
00:02:39,040 --> 00:02:43,930
And a text box in here to display.

28
00:02:45,040 --> 00:02:52,150
The task and besides, there will be an X that will allow us to delete that.

29
00:02:52,960 --> 00:02:54,940
OK, so let's.

30
00:02:56,160 --> 00:02:56,760
Do this.

31
00:02:57,800 --> 00:03:03,080
I will answer and let's check if that.

32
00:03:04,390 --> 00:03:05,140
Equals.

33
00:03:07,430 --> 00:03:11,810
We will need to create a new layout, as we have seen.

34
00:03:12,800 --> 00:03:19,190
OK, then you will not win equal to exactly the same.

35
00:03:20,080 --> 00:03:25,660
One year, but we will modify a bit more.

36
00:03:26,770 --> 00:03:33,100
We will have to store the tasks and dates in our list.

37
00:03:33,750 --> 00:03:39,180
OK, so to do this, we will create a variable.

38
00:03:43,080 --> 00:03:44,910
Which will equal to an empty list.

39
00:03:45,860 --> 00:03:51,150
And here we will create the thing that will be displayed, which is called.

40
00:03:52,220 --> 00:03:53,600
We will take the values.

41
00:03:55,620 --> 00:03:58,900
Which is the value inside the box.

42
00:03:59,760 --> 00:04:01,620
Then we will.

43
00:04:02,560 --> 00:04:04,930
Just had some thing.

44
00:04:09,390 --> 00:04:11,460
Then we will get.

45
00:04:12,150 --> 00:04:12,840
The date.

46
00:04:13,810 --> 00:04:15,100
That is Stuart.

47
00:04:16,240 --> 00:04:21,280
In the next box, they don't get.

48
00:04:26,310 --> 00:04:28,770
Of zero, where did we get this?

49
00:04:32,720 --> 00:04:34,970
Put a break point in it and let.

50
00:04:36,220 --> 00:04:39,070
The magnis, I will choose the date.

51
00:04:40,530 --> 00:04:42,450
For example, ask.

52
00:04:43,010 --> 00:04:44,270
Yes, I will.

53
00:04:44,960 --> 00:04:45,310
OK.

54
00:04:47,060 --> 00:04:50,810
Now, let's check the window.

55
00:04:51,820 --> 00:04:53,800
Let's plant values.

56
00:04:54,740 --> 00:04:59,230
It has nothing because these are textbooks.

57
00:04:59,270 --> 00:05:03,450
So let's get a window of a date.

58
00:05:04,400 --> 00:05:09,590
This is the control or the element itself not get we return.

59
00:05:10,650 --> 00:05:15,150
The date inside the element I will split it by.

60
00:05:16,210 --> 00:05:26,620
Space, because it contains the day and time I want only to date this will and I'll take the first element

61
00:05:27,490 --> 00:05:30,760
and we obtained only the date.

62
00:05:31,450 --> 00:05:31,810
OK.

63
00:05:32,880 --> 00:05:39,120
Let's also take this, so the result of this will be.

64
00:05:40,830 --> 00:05:44,400
Task description on the.

65
00:05:45,280 --> 00:05:46,690
Which is what we want.

66
00:05:46,810 --> 00:05:50,530
OK, so let's continue.

67
00:05:55,760 --> 00:05:57,300
If ask.

68
00:05:58,910 --> 00:06:00,850
Not in us.

69
00:06:05,230 --> 00:06:05,920
And.

70
00:06:10,780 --> 00:06:12,880
Now we want to.

71
00:06:15,570 --> 00:06:22,530
A text box with an X beside it for each task to do this, we will.

72
00:06:26,320 --> 00:06:28,150
We will use.

73
00:06:30,320 --> 00:06:32,240
List comprehension.

74
00:06:35,740 --> 00:06:36,400
Another.

75
00:06:38,430 --> 00:06:44,280
Box that will have an idea and size.

76
00:06:45,330 --> 00:06:46,740
Equals to.

77
00:06:47,710 --> 00:06:50,110
Three and one, for example.

78
00:06:51,000 --> 00:06:52,590
And another.

79
00:07:00,550 --> 00:07:03,550
And again, we will give Assize.

80
00:07:06,530 --> 00:07:13,790
And one, this has a little bit bigger and I will give it a key.

81
00:07:15,180 --> 00:07:23,340
Will equal to Formating and Digex, and finally I will.

82
00:07:24,920 --> 00:07:25,890
Creator.

83
00:07:28,840 --> 00:07:30,280
That will allow us to delete.

84
00:07:33,160 --> 00:07:34,450
I will give it a key.

85
00:07:35,940 --> 00:07:37,170
Formatted string.

86
00:07:38,630 --> 00:07:41,420
Formatted String DL.

87
00:07:42,630 --> 00:07:44,700
Of IdeaCast.

88
00:07:46,050 --> 00:07:47,580
And I gave it.

89
00:07:48,700 --> 00:07:49,450
Enable.

90
00:07:50,350 --> 00:07:51,070
Event.

91
00:07:52,120 --> 00:07:53,230
Equals to.

92
00:07:56,720 --> 00:07:58,730
We should not have closed this.

93
00:08:02,070 --> 00:08:06,060
Idea and T and I nominate.

94
00:08:08,740 --> 00:08:11,410
It's an event, not event.

95
00:08:13,670 --> 00:08:20,450
And finally, we will add our buttons, we have seen something similar to this in.

96
00:08:21,540 --> 00:08:32,850
The lecture, OK, this will create our layout and we will create window one, which will equal to this

97
00:08:33,390 --> 00:08:45,900
window of to do and layout, then we will when the door closed, we will close the window and we will

98
00:08:45,900 --> 00:08:53,250
assign window equals window when we have seen the same thing in the lecture.

99
00:08:53,280 --> 00:08:53,970
Now let's.

100
00:08:55,210 --> 00:08:56,210
Give it a try.

101
00:08:57,040 --> 00:09:01,730
I will choose a date, this one I'll take.

102
00:09:01,760 --> 00:09:02,110
OK.

103
00:09:02,980 --> 00:09:09,490
Now, let's look at those numbers should be adjusted and also.

104
00:09:11,970 --> 00:09:15,660
Space in years, we should give it some.

105
00:09:18,240 --> 00:09:18,850
OK.

106
00:09:19,080 --> 00:09:23,130
Of course, if we plug in years, nothing will happen, let's.

107
00:09:23,900 --> 00:09:29,270
Plus, this and just this about I will give this.

108
00:09:32,930 --> 00:09:34,100
Twenty, for example.

109
00:09:36,620 --> 00:09:39,140
Let's also Grant.

110
00:09:40,300 --> 00:09:42,160
Event values.

111
00:09:43,200 --> 00:09:52,710
As one, if you press enter, it's similar to clicking Daokui, but it's two.

112
00:09:53,630 --> 00:09:55,310
If I click on decks.

113
00:09:56,210 --> 00:09:58,430
OK, to have recognized.

114
00:09:59,350 --> 00:10:00,490
The number correctly.

115
00:10:01,960 --> 00:10:03,700
OK, so we have to.

116
00:10:04,900 --> 00:10:06,030
We have to create.

117
00:10:07,060 --> 00:10:18,190
And I to delete it and cancel let's first modify this to start with one, OK, and let's create our.

118
00:10:19,130 --> 00:10:20,090
Daily function.

119
00:10:21,080 --> 00:10:23,390
Event dot star.

120
00:10:24,230 --> 00:10:26,060
With the late.

121
00:10:27,100 --> 00:10:29,830
Then we will need to get the index.

122
00:10:30,910 --> 00:10:36,490
Which will equal to an event that's let.

123
00:10:37,590 --> 00:10:42,660
Yes, we have seen the same thing before, I take the.

124
00:10:43,880 --> 00:10:45,260
Last element.

125
00:10:46,340 --> 00:10:53,480
And we have to convert to enter and let's run the index and see how.

126
00:10:56,160 --> 00:11:01,500
I will create an event, there's one there's to.

127
00:11:06,310 --> 00:11:08,910
Now, let's click on the second one.

128
00:11:12,550 --> 00:11:13,360
But this is.

129
00:11:15,020 --> 00:11:16,070
Item number two.

130
00:11:17,610 --> 00:11:27,180
Which should be at index one, because we are attending this to the list and we will delete it from

131
00:11:27,180 --> 00:11:35,990
the list, so we should subtract one from this value, otherwise we will delete the Nextel.

132
00:11:38,000 --> 00:11:42,260
And then all we will do is we will delete the.

133
00:11:45,320 --> 00:11:49,040
Of index, and we will have to repeat.

134
00:11:51,110 --> 00:11:53,150
So and instead.

135
00:11:54,170 --> 00:12:03,250
Of doing it this way, we can create a function in years, the fine, great.

136
00:12:04,840 --> 00:12:05,980
Ask, for example.

137
00:12:07,250 --> 00:12:08,880
That will be asked.

138
00:12:09,200 --> 00:12:13,970
This is the only thing that we need and let's.

139
00:12:17,510 --> 00:12:18,170
This.

140
00:12:19,380 --> 00:12:20,450
And put it in here.

141
00:12:21,740 --> 00:12:24,980
And we will return when the.

142
00:12:27,650 --> 00:12:28,460
And in here.

143
00:12:30,850 --> 00:12:34,270
Whinged One will equal to create.

144
00:12:38,110 --> 00:12:41,080
We'll take these three lines and paste them.

145
00:12:41,940 --> 00:12:44,760
And he's not before this let's.

146
00:12:45,880 --> 00:12:51,760
Check if that's because deleting from an empty list, it would return an error.

147
00:12:52,030 --> 00:12:53,260
Now, let's check this.

148
00:13:01,710 --> 00:13:08,700
Three, now, let's delete this one drink it had deleted.

149
00:13:09,790 --> 00:13:14,650
The task successfully, let's delete this one, let's delete this one.

150
00:13:15,770 --> 00:13:17,550
OK, this is great.

151
00:13:17,570 --> 00:13:20,730
I can even start the whole process.

152
00:13:24,020 --> 00:13:35,150
And we have a fully functional dynamic layout that we can add more elements and delete elements as we

153
00:13:35,150 --> 00:13:35,360
go.

154
00:13:36,290 --> 00:13:40,320
OK, this will conclude our lecture.

155
00:13:40,910 --> 00:13:44,330
Thank you for watching and join me in the next lecture.
