Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Swift iOS Programming for Kids
  • Toc
  • feedback
Swift iOS Programming for Kids

Swift iOS Programming for Kids

By : D. Sommer, Campagno
4.2 (5)
close
Swift iOS Programming for Kids

Swift iOS Programming for Kids

4.2 (5)
By: D. Sommer, Campagno

Overview of this book

This book starts at the beginning by introducing programming through easy to use examples with the Swift Playgrounds app. Kids are regularly encouraged to explore and play with new concepts to support knowledge acquisition and retention – these newly learned skills can then be used to express their own unique ideas. Children will be shown how to create their first iOS application and build their very own movie night application.
Table of Contents (15 chapters)
close
2
2. Getting Set Up
10
10. Pokémon Battle
13
13. Space Pizza Delivery

Summary

This chapter covered a lot of ground related to how interfaces work and how we can construct them using Xcode's Interface Builder. The chapter started out by explaining the view hierarchy and how we can use that to position elements using frames, bounds, and Auto Layout. We also briefly looked at some of the important states in the view life cycle:

  • viewDidLoad(): This is called after the view has been loaded
  • viewWillAppear(_:): This is called every time the view is about to appear to the user
  • viewDidAppear(_:): This is called every time the view appears to the user
  • viewWillDisappear(_:): This is called every time the view is about to disappear for the user

We ended the chapter by making a small application, which we called Starry Night. The application scaled correctly across devices with different screen sizes because we used Auto Layout constraints. The application was able to animate the background color based on the user tapping the buttons. The application also showed...

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete