Skip to main content

Project 2: Guess the Flag

About 2 minSwiftiOSArticle(s)bloghackingwithswift.comcrashcourseswiftxcodeappstoreios

Project 2: Guess the Flag 관련

Hacking with iOS – learn to code iPhone and iPad apps with free Swift tutorials

Learn Swift coding for iOS with these free tutorials – learn Swift, iOS, and Xcode

Project 2: Guess the Flag

Make a game using UIKit, and learn about integers, buttons, colors and actions.

Description

Make a game using UIKit, and learn about integers, buttons, colors and actions.

Setting up | Hacking with iOS

Setting up
Designing your layout | Hacking with iOS

Designing your layout
Making the basic game work: UIButton and CALayer | Hacking with iOS

Making the basic game work: UIButton and CALayer
Guess which flag: random numbers | Hacking with iOS

Guess which flag: random numbers
From outlets to actions: creating an IBAction | Hacking with iOS

From outlets to actions: creating an IBAction
Wrap up | Hacking with iOS

Wrap up

Need help?

I put together answers for over 600 of the most frequently asked questions I received from readers into one place: the Swift 5 Knowledge Base. It answers basic and advanced questions, and provides lots of free code you can re-use however you please. If you hit problems, try searching there first.

If you're still having problems, you can post to the Hacking with Swift subredditopen in new window where you can expect an answer fairly quickly, or you can find me on Twitteropen in new window where I'll do my best to help.


Project files

The project files for Hacking with Swift are all available on GitHub, where you can view them, fork them, or download them:

twostraws/HackingWithSwift
The project source code for Hacking with iOS.

이찬희 (MarkiiimarK)
Never Stop Learning.