万本电子书0元读

万本电子书0元读

顶部广告

Swift by Example电子书

售       价:¥

2人正在读 | 0人评论 9.8

作       者:Giordano Scalzo

出  版  社:Packt Publishing

出版时间:2015-06-19

字       数:126.9万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
This book is intended for those who want to learn to develop apps in Swift the right way. Whether you are an expert Objective-C programmer or new to this platform, you'll learn quickly, grasping the code of real-world apps to use Swift effectively. Prior experience in development for Apple devices would be helpful, but is not mandatory.
目录展开

Swift by Example

Table of Contents

Swift by Example

Credits

About the Author

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Welcome to the World of Swift

The first look at Swift

Let's go to the playground

The building blocks – variables and constants

Collect variables in containers

Controlling the flow

Transforming the values using functions

Structs – custom compounds type

Classes – common behavior objects

Loose coupling with protocols

Check the existence of an optionals value

Enumerations on steroids

A Guess the Number app in Swift

The app is…

Building a skeleton app

Adding the graphic components

Connecting the dots

Adding the code

Summary

2. A Memory Game in Swift

The app is…

Building the skeleton of the app

The menu screen

Implementing the basic menu screen

Creating a nice menu screen

The game screen

The structure

Adding the collectionView class

Sizing the components

Connecting the datasource and the delegate

Implementing a deck of cards

What we are expecting

The Card entity

Crafting the deck

Shuffling the deck

Finishing the deck

Put the cards on the table

Adding the assets

The CardCell structure

Handling touches

Finishing the game

Implementing the game logic

We got a pair

We played a wrong turn

Et voilà! The game is completed

Summary

3. A TodoList App in Swift

The app is…

Building a skeleton app

Implementing an empty app

Adding third-party libraries with CocoaPods

Implementing the Todos ViewController

Building the Todos screen

Adding the entities

Implementing the datastore

Connecting the datastore and the ViewController

Configuring tableView

Implementing TodoViewCell

Swipe that cell!

Adding a Todo task

The add a Todo ViewController

Updating the datastore

Adding a list

Implementing ListViewCell

Building ListViewController

Updating the datastore

Where do we go from here?

Summary

4. A Pretty Weather App

The app is…

Building the skeleton

Creating the project

Adding the assets

Implementing the UI

The UI in blocks

Completing the UI

CurrentWeatherView

WeatherHourlyForecastView

WeatherDaysForecastView

Blurring the background

Downloading the background image

Searching in Flickr

Geolocalising the app

Using CoreLocation

Retrieving the actual forecast

Getting the forecast from OpenWeatherMap

Rendering CurrentWeatherView

Rendering WeatherHourlyForecastView

Rendering WeatherDaysForecastView

Connecting to the server

Where do we go from here?

Summary

5. Flappy Swift

The app is…

Building the skeleton of the app

Creating the project

Implementing the menu

A stage for a bird

SpriteKit in a nutshell

Explaining the code

Simulating a three-dimensional world using parallax

How to implement the scrolling

A flying bird

Adding the Bird node

Making the bird flap

Pipes!

Implementing the pipes node

Making the components interact

Setting up the collision detection engine

Completing the game

Colliding with the pipes

Adding the score

Adding a restarting popup

Summary

6. Polishing Flappy Swift

Adding juiciness

Let there be sounds!

Playing the soundtrack

Shaking the screen!

Integrating with Game Center

What Game Center provides

Setting up Game Center

Creating an app record on iTunes Connect

Enabling Game Center

Creating fake user accounts to test Game Center

Authenticating a player

Summary

7. Cube Runner

The app is…

Introduction to SceneKit

What is SceneKit?

Building an empty scene

Adding a green torus

Let there be light!

Let's make it move!

Implementing Cube Runner

The game skeleton

Implementing the menu

Flying in a 3D world

Setting up the scene

Adding the fighter

Texturing the world

Make it move

Adding the cubes

Adding more obstacles

Adding a few touches

The score

Let's add the music

Summary

8. Completing Cube Runner

Making it a real game

Detecting collisions

Game Over!

Adding the juice

Game Center

Summary

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部