1 00:00:00,600 --> 00:00:07,500 We are ready to make our very first app, so go ahead, open up Xcode, and there are two ways we can 2 00:00:07,500 --> 00:00:08,440 make our first app. 3 00:00:08,790 --> 00:00:13,650 One is to click create new Xcode project, or you can go to file new. 4 00:00:16,100 --> 00:00:22,220 Project, when you click that, you are presented with a little Wizzit to run through. 5 00:00:22,880 --> 00:00:29,540 We can have an app, a document app, a game, etc, etc, frameworks, libraries, we got Mako's at 6 00:00:29,540 --> 00:00:32,060 the top, we got watch post-box, etc.. 7 00:00:32,780 --> 00:00:37,430 You can also click multiplatform game or swift package. 8 00:00:38,210 --> 00:00:43,160 For now we're just going to use iOS and a basic app click. 9 00:00:43,160 --> 00:00:47,110 Next, it will ask you for your product name. 10 00:00:48,170 --> 00:00:52,400 What are we going to call this green space torch. 11 00:00:53,490 --> 00:00:54,240 Let's get that right. 12 00:00:56,220 --> 00:00:57,520 It will ask you for your team. 13 00:00:58,620 --> 00:01:01,480 Well, that's my company name registered under Apple. 14 00:01:02,250 --> 00:01:06,570 I'm not sure what this is going to look like if you don't have a developer account, but I do know that 15 00:01:06,570 --> 00:01:08,220 you can still run through this. 16 00:01:09,500 --> 00:01:13,550 The interface, you have two choices, Swiftie and Storyboard. 17 00:01:13,940 --> 00:01:21,350 Now, Swiftie is the latest greatest thing from Apple to create user interfaces, but because it's new, 18 00:01:21,770 --> 00:01:23,500 everyone still uses storyboards. 19 00:01:23,510 --> 00:01:25,240 It's only the pioneers going to Swiftie. 20 00:01:25,700 --> 00:01:30,470 You don't need swift UI at this point, and probably not for the next five to 10 years. 21 00:01:30,860 --> 00:01:35,420 Storyboard will continue to be the dominant way to be the interface of your app. 22 00:01:37,030 --> 00:01:43,330 Life-cycle, you like Kit App delegate, I'll explain what life cycles are as we go through everything, 23 00:01:43,540 --> 00:01:47,740 because I don't want to fill your head with too much stuff right now and then we have language swift 24 00:01:47,740 --> 00:01:48,310 or objective. 25 00:01:48,310 --> 00:01:49,720 C Well obviously swift. 26 00:01:49,720 --> 00:01:55,270 It's a much nicer, cleaner language than objective C and we have an option to use core data. 27 00:01:55,450 --> 00:01:59,380 That's basically the database that's built in to iOS. 28 00:01:59,860 --> 00:02:01,360 But we don't need it for this app. 29 00:02:01,360 --> 00:02:06,310 And I would say in almost 100 percent of apps don't use Chordata. 30 00:02:06,310 --> 00:02:07,710 It's really complicated. 31 00:02:08,080 --> 00:02:12,400 It's better to use something like SQL Lite, but we'll get into that. 32 00:02:12,400 --> 00:02:16,570 We can include tests if we want, but I'm going to check that. 33 00:02:17,930 --> 00:02:19,180 Let's hit next. 34 00:02:19,180 --> 00:02:21,580 It'll ask you where you want to save it. 35 00:02:21,850 --> 00:02:26,710 So we have this little desktop area here. 36 00:02:26,710 --> 00:02:31,750 I'm going to create that and it should save it under his own folder called Screen Torch. 37 00:02:31,750 --> 00:02:33,190 I can see it's happened at the corner. 38 00:02:35,590 --> 00:02:39,940 Right, and it says, no, all the information was supplied, don't care about that, just click cancel. 39 00:02:40,060 --> 00:02:41,300 You can change all of that. 40 00:02:42,130 --> 00:02:45,940 Now, let's get you a little bit familiar just with the interface. 41 00:02:47,470 --> 00:02:54,040 Over on this side of my mouth is where we have screen torture, a bunch of folders and files, we have 42 00:02:54,040 --> 00:02:58,770 a bunch of files that basically will contain all the code of our app. 43 00:02:59,260 --> 00:03:06,940 What you see there is the bare template required to get an application to work on an iOS simulator or 44 00:03:06,940 --> 00:03:07,450 device. 45 00:03:08,260 --> 00:03:10,840 When we're editing stuff, we'll just be clicking these. 46 00:03:10,840 --> 00:03:16,210 If you double click them, you're going to open up that particular item and you'll see we have code 47 00:03:16,210 --> 00:03:16,830 and things there. 48 00:03:17,440 --> 00:03:23,290 So that brings us to the center of the screen where you do all of your code editing. 49 00:03:23,290 --> 00:03:28,390 So important UI kit, class view controller, you've done the first parts of this course or my basic 50 00:03:28,430 --> 00:03:30,610 drift course is you'll know what this means already. 51 00:03:32,330 --> 00:03:32,870 Right. 52 00:03:32,900 --> 00:03:33,790 What else have we got? 53 00:03:33,800 --> 00:03:39,740 We've got things like a main storyboard, storyboards are the graphical element of your app. 54 00:03:40,400 --> 00:03:46,160 Whenever you're coding, it's a good idea to keep the storyboard separate from the code is just good 55 00:03:46,160 --> 00:03:47,000 coding practice. 56 00:03:48,710 --> 00:03:56,330 If you click something in the storyboard on the right, we get a whole bunch of options to change that 57 00:03:56,330 --> 00:03:57,380 particular item. 58 00:03:57,600 --> 00:04:01,510 So that's where we change the properties of the item in the storyboard. 59 00:04:02,150 --> 00:04:05,830 I'm going to close storyboard because we're not going to use that for now, right? 60 00:04:05,840 --> 00:04:11,900 Once everything is up and running and sorted and you want to actually test your app and all you have 61 00:04:11,900 --> 00:04:19,040 to do is hit play in the top left corner and that's going to load the app onto whichever device you've 62 00:04:19,040 --> 00:04:21,120 selected in this top menu. 63 00:04:21,620 --> 00:04:25,820 So if you just click the device name, you can select literally anything you like. 64 00:04:26,960 --> 00:04:31,540 If you click the first item, we start to get a little more complex, so we're not going to touch that, 65 00:04:32,300 --> 00:04:34,090 we're just going to go for the device. 66 00:04:34,700 --> 00:04:35,720 Now, where's the device? 67 00:04:35,750 --> 00:04:36,220 Here it is. 68 00:04:36,230 --> 00:04:40,340 It's loading an iPod Touch and the app is actually loaded. 69 00:04:41,230 --> 00:04:46,900 I know that because I can see the code at the bottom says it's loaded, but there is nothing to display 70 00:04:46,900 --> 00:04:49,210 because we have a basic white screen. 71 00:04:49,660 --> 00:04:50,710 So that's your first app. 72 00:04:51,040 --> 00:04:57,570 That's your familiarisation around Xcode and that's how to load the app onto a simulator.