官术网_书友最值得收藏!

  • Swift 2 By Example
  • Giordano Scalzo
  • 190字
  • 2021-07-16 12:45:45

The app is…

The app we are going to implement is a UIKit implementation of a memory game: a solitaire version. A memory game, also known as concentration, is a card game where the player must match all the cards, which start reversed, turning up two of them in each turn. If the cards match, they are removed from the table. Otherwise, they are turned down again and the score increases. The goal is to clear the table with the lowest score possible.

In our implementation, we are going to use only standard UIKit components and look at another way of creating the interface in Xcode. We'll create all of our UI directly in the code without using Interface Builder.

Let's start prototyping the screens. Despite this being an educational app, we want it to be a pretty and fun app, so we need at least one option to decide the difficulty, selecting the quantity of cards laid on the table.

The following are the screens we'll implement for the app; the first is to select the difficulty—basically, selecting the number of the cards in the deck:

主站蜘蛛池模板: 紫金县| 高安市| 台安县| 策勒县| 宿州市| 原阳县| 敦煌市| 天等县| 皮山县| 平湖市| 平潭县| 宁陵县| 洛浦县| 页游| 正阳县| 保靖县| 布拖县| 龙胜| 平遥县| 中方县| 布尔津县| 和平县| 新宁县| 永顺县| 江山市| 栾川县| 上饶县| 铜山县| 曲麻莱县| 灵武市| 双峰县| 双辽市| 庄河市| 犍为县| 乌兰察布市| 蒙自县| 安吉县| 兴仁县| 阳曲县| 绥德县| 寿光市|