Build a Trivia iPhone game that monetizes - Swift2 and iOS9
4.1 (24 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
404 students enrolled
Wishlisted Wishlist

Please confirm that you want to add Build a Trivia iPhone game that monetizes - Swift2 and iOS9 to your Wishlist.

Add to Wishlist

Build a Trivia iPhone game that monetizes - Swift2 and iOS9

Step by step video instructions on how to build your own Trivia game for iPhone using Swift language (code included)
4.1 (24 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
404 students enrolled
Created by Yohann Taieb
Last updated 12/2016
Learn Fest Sale
Current price: $10 Original price: $200 Discount: 95% off
2 days left at this price!
30-Day Money-Back Guarantee
  • 1.5 hours on-demand video
  • 2 Articles
  • 1 Supplemental Resource
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • how to use a MAC for programming
  • learn how to download and use the programming tool named XCode
  • learn how to create a programming project with Swift for iPhones
  • learn how to design the iPhone game user interface
  • learn how to interact with the iPhone user interface
  • Learn how to retrieve data from a JSON file
  • Learn how to use game settings like the player score
  • learn how to monetize the game using iAD advertising network
View Curriculum
  • have a MAC OS or use macinclouds virtual machine online

Do you want to create a Trivia iPhone game by yourself?

Then this course is for you.

In this course you will learn how to program a Trivia Game for iPhone using the latest iOS kit and the Swift programming language.

This course video lectures take you from the very beginning, just like if you knew nothing about programming and takes you all the way to build a working trivia game for iPhone.

You will be show every single steps and you have access to the final source code so you have all you need to succeed.

We will go through the following

- creating the project

- designing the user interface

- connecting the interface to the code

- learn how to read questions and answers using json technology

- learn how to play sounds

- learn how to save and retrieve the player score

- use iAd advertising banners t generate revenues.

...and much more, all using the trendy language named Swift.

This is a great opportunity to get to create a classic trivia game for iPhone while learning fundamental skills.

Join the course now . Have fun!

Who is the target audience?
  • people that want to make mobile games
  • people that want to learn about the beautiful new language named Swift
  • people who want to learn to code
  • people who like step by step video guides
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 24 Lectures Collapse All 24 Lectures 01:25:43
Download the final project
1 Lecture 00:02

Please download the final project files as reference.

Download the final project
Getting Started
4 Lectures 07:52

Get the programming tool and open it

Preview 03:30

Learn how to create the source code project using XCode

Preview 01:28

Learn how to add images to your xcode project

NOTE: asset files are located within the download tab of this lecture

There are 2 versions of the final project source code, one for the older xcode and one for xcode 6.3 and above.

Add image files to the trivia xcode project (project files here)

Learn how to customize your project settings.

Modifying default project settings
Design the User Interface
3 Lectures 15:15

Learn how to create the user interface (part 1 of 2)

Preview 09:35

Learn how to create the user interface (part 2 of 2)

Creating Trivia User Interface part 2

Learn how to connect the user interface to the code behind.

Connect interface to UIlabels and UIButtons outlets
Program core functionality
4 Lectures 12:14

Learn how to program the functionality to save and retrieve the player score.

Program the loadScore and SaveScore methods

Learn how to add a json file to your xcode project

Adding the content json file to the xcode swift project

Learn how to load the data of the json file into your code

Load data from json file using Swift

Learn how to verify if the program reads the data from the JSON file correctly.

Verify json file data has been retrieved using the debug console println
Working on trivia answers
7 Lectures 34:07

Learn how to use random functionality to pick a random question and answers.

Display a random question with answers for the swift trivia in the debug console

Learn how to display the random question and answers within the user interface.

Preview 11:20

Learn how to use the make buttons more transparent

Writing code to reset all answer buttons alpha using swift

Learn how to connect the uibuttons to the code

Connect swift uibuttons to code actions

Write logic triggered when an answer button is getting pressed.

Write answer button code logic in swift

Write the code that checks if the answer is correct or invalid.

Program the Check Answer logic using Swift

Learn how to program the code that is triggered when the "next" button is triggered.

Program the Next button logic using Swift
Working with sounds
2 Lectures 06:51

Learn how to add sound effect files to your project.

Add sound effect files to the swift xcode project

Learn how to program sounds to play and test them in the iPhone simulator

Preview 06:15
Final customization
3 Lectures 10:01

Learn how to adjust the screen sizes to fit all iPhone dimensions.

Adjusting ui element controls size for each iphone dimensions

Mega Trivia source code explained

The Pro version source code

About the Instructor
Yohann Taieb
4.3 Average rating
2,312 Reviews
51,276 Students
76 Courses
Apps Games Unity iOS Android Apple Watch TV Development

Yohann holds a Bachelor of Science Degree in Computer Science from FIU University. He has been a College instructor for over 7 years, teaching iPhone Development, iOS 10, Apple Watch development, Swift 3, Unity 3D, Pixel Art, Photoshop for programmers, and Android. Yohann also has plenty of ideas which naturally turned him into an entrepreneur, where he owns over 100 mobile apps and games in both the Apple app store and the Android store.

Yohann is one of the leading experts in mobile game programming, app flipping and reskinning. His teaching style is unique, hands on and very detailed. Yohann has enabled more than 50000 students to publish their own apps and reach the top spots in iTunes App Stores, which has been picked up by blogs and medias like WIRED magazine, Yahoo News, and Forbes Online. Thanks to him, thousands of students now make a living using iOS 9, Swift 2, Objective C ( ObjC ), Android, Apple Watch ( watchOS ), Apple TV ( TVOS ), Unity 3D, and Pixel art animation