Angela Yu Xcode 2012 Course - Part 4 (lectures 44 to 50)
Four days in a row! Been consistent and regular since resolving to work through Angela's latest Xcode course. I have 40 minutes maximum now so let's crack on!
Start Time - 15:18
Again, I'm not creating these new projects but am going to predict what to code and make a note of it here before Angela reveals the answer.
Dicee App
OK Image View takes up the entire screen - this is because Angela will have some cool green felt background to add in!
So something that's clear now is that for EVERY image there needs to be the 1x, 2x and 3x files.
Right the contents.JSON file is what is used to get all of the app icons. Neat! Assests.xcassets.
So best way seems to be to click and drag from the app icon folder to the Xcode project folder - removing what was there before.
So the image files can be dragged straight onto Xcode or into the folder as above. I'll stick to the folder way for the icons.
Top tip for images of same size - copy and paste! Much easier. Hold down alt and click and drag - will copy those items to the new area. Could be useful!
XML - complex looking code. Like HTML - doesn't need to be used or anything (yet!).

THIS is better for workability!

Right so the screenshot below shows the connected outlets. Hover/click on the circle to see what is connected to it!

Now for the button, Angela puts in UIButton instead of Any. Not sure why it is UIButton explicitly for this. Hopefully will find out another time but no issue for now.

This is the error that comes up if an outlet is not connected. Or if the name of the outlet is changed. Makes total sense and I used to get these all of the time!!

Also click on the object and see what connections it has. Click on the little cross to break the referencing outlet.
Randomisation
Cool, this has the most recent way of using the random function!
OK for the images to work TAGs are needed - each one is worth a different tag.
Randomising is easy now!

Bit about data types etc. - skimming through as this is all pretty easy.
Option to choose between manually and automatically run - could be useful.
This is a cool way of looking how data types can't just be swapped etc.

Finish Time - 15:56 (38 minutes total)
So another quick session today. Nothing particularly new learned this time, but good to see the randomisation new way in action. Some other good tips about the views and outlets too. Next time, rest of Dicee app!
Start Time - 15:18
Again, I'm not creating these new projects but am going to predict what to code and make a note of it here before Angela reveals the answer.
Dicee App
OK Image View takes up the entire screen - this is because Angela will have some cool green felt background to add in!
So something that's clear now is that for EVERY image there needs to be the 1x, 2x and 3x files.
Right the contents.JSON file is what is used to get all of the app icons. Neat! Assests.xcassets.
So best way seems to be to click and drag from the app icon folder to the Xcode project folder - removing what was there before.
So the image files can be dragged straight onto Xcode or into the folder as above. I'll stick to the folder way for the icons.
Top tip for images of same size - copy and paste! Much easier. Hold down alt and click and drag - will copy those items to the new area. Could be useful!
XML - complex looking code. Like HTML - doesn't need to be used or anything (yet!).

THIS is better for workability!

Right so the screenshot below shows the connected outlets. Hover/click on the circle to see what is connected to it!

Now for the button, Angela puts in UIButton instead of Any. Not sure why it is UIButton explicitly for this. Hopefully will find out another time but no issue for now.

This is the error that comes up if an outlet is not connected. Or if the name of the outlet is changed. Makes total sense and I used to get these all of the time!!

Also click on the object and see what connections it has. Click on the little cross to break the referencing outlet.
Randomisation
Cool, this has the most recent way of using the random function!
OK for the images to work TAGs are needed - each one is worth a different tag.
Randomising is easy now!

Bit about data types etc. - skimming through as this is all pretty easy.
Option to choose between manually and automatically run - could be useful.
This is a cool way of looking how data types can't just be swapped etc.

Finish Time - 15:56 (38 minutes total)
So another quick session today. Nothing particularly new learned this time, but good to see the randomisation new way in action. Some other good tips about the views and outlets too. Next time, rest of Dicee app!
Comments
Post a Comment