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.6 (22 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.
• 398 students enrolled
Take This Course
  • Lectures 24
  • Length 1.5 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 4/2015 English

Course Description

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!

What are the requirements?

  • have a MAC OS or use macinclouds virtual machine online

What am I going to get from this course?

  • 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

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

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.



Please download the final project files as reference.

Section 1: Getting Started

Get the programming tool and open it


Learn how to create the source code project using XCode


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.


Learn how to customize your project settings.

Section 2: Design the User Interface

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


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


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

Section 3: Program core functionality

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


Learn how to add a json file to your xcode project


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


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

Section 4: Working on trivia answers

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


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


Learn how to use the make buttons more transparent


Learn how to connect the uibuttons to the code


Write logic triggered when an answer button is getting pressed.


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


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

Section 5: Working with sounds

Learn how to add sound effect files to your project.


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

Section 6: Final customization

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


Mega Trivia source code explained


Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Yohann Taieb, 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 20000 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

Ready to start learning?
Take This Course