万本电子书0元读

万本电子书0元读

顶部广告

Learn Swift by Building Applications电子书

售       价:¥

3人正在读 | 0人评论 9.8

作       者:Emil Atanasov

出  版  社:Packt Publishing

出版时间:2018-05-25

字       数:34.9万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Start building your very own mobile apps with this comprehensive introduction to Swift and object-oriented programming About This Book ? A complete beginner's guide to Swift programming language ? Understand core Swift programming concepts and techniques for creating popular iOS apps ? Start your journey toward building mobile app development with this practical guide Who This Book Is For This book is for beginners who are new to Swift or may have some preliminary knowledge of Objective-C. If you are interested in learning and mastering Swift in Apple’s ecosystem, namely mobile development, then this book is for you. What You Will Learn ? Become a pro at iOS development by creating simple-to-complex iOS mobile applications ? Master Playgrounds, a unique and intuitive approach to teaching Xcode ? Tackle the basics, including variables, if clauses, functions, loops and structures, classes, and inheritance ? Model real-world objects in Swift and have an in-depth understanding of the data structures used, along with OOP concepts and protocols ? Use CocoaPods, an open source Swift package manager to ease your everyday developer requirements ? Develop a wide range of apps, from a simple weather app to an Instagram-like social app ? Get ahead in the industry by learning how to use third-party libraries efficiently in your apps In Detail Swift Language is now more powerful than ever; it has introduced new ways to solve old problems and has gone on to become one of the fastest growing popular languages. It is now a de-facto choice for iOS developers and it powers most of the newly released and popular apps. This practical guide will help you to begin your journey with Swift programming through learning how to build iOS apps. You will learn all about basic variables, if clauses, functions, loops, and other core concepts; then structures, classes, and inheritance will be discussed. Next, you’ll dive into developing a weather app that consumes data from the internet and presents information to the user. The final project is more complex, involving creating an Instagram like app that integrates different external libraries. The app also uses CocoaPods as its package dependency manager, to give you a cutting-edge tool to add to your skillset. By the end of the book, you will have learned how to model real-world apps in Swift. Style and approach This book has a very practical and hands-on approach towards teaching the user the new and advanced features of Swift.
目录展开

Title Page

Copyright and Credits

Learn Swift by Building Applications

Packt Upsell

Why subscribe?

PacktPub.com

Contributors

About the author

About the reviewer

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Conventions used

Get in touch

Reviews

Swift Basics – Variables and Functions

Variables

Optional types

Enumeration types

Basic flow statements

The if statements – how to control the code flow

Loops

The while loops

The switch statement

Functions

What is a tuple?

What is the guard statement?

How to tackle huge problems – bottom-up versus top-down

Summary

Getting Familiar with Xcode and Playgrounds

Installing Xcode

Exploring Xcode

What do we see on the screen?

Toolbar

Menu

The Navigator panel (located to the left)

The Debug panel (located at the bottom)

The Utilities panel (located to the right)

Xcode preferences window

Playground

What is a playground?

Let's add some code

How to add auxiliary code to a playground

How to add resource to a playground

Converting a playground to a workspace

Markup in playgrounds

Different items in the markup language

Basic markup items

Summary

Creating a Minimal Mobile App

Your first iOS application

Project structure

AppDelegate

Application states

ViewController

Git

Summary

Structures, Classes, and Inheritance

Structures and classes

Extensions

The deinit method

Type properties and functions

Adding custom data types to a playground

Inheritance

Base class

Class properties

Model-View-Controller (MVC)

Summary

Adding Interactivity to Your First App

Storyboards

Visual components

Adding items to the storyboard

Linking the UI with the code

General discussion

Summary

How to Use Data Structures, OOP, and Protocols

Primary collection types

Generics

Array

Set

Dictionary

How to choose the best collection type

List of items in a playground

UICollectionView

UICollectionViewCell

Reusing cells

Layouts

Table view in iOS app

Model list of cities

Displaying all cities

Adding search

Protocols

Protocols and inheritance

Summary

Developing a Simple Weather App

Defining the app screens

The home screen

Favorite locations

Constraints

Picking a location

Model

Locations

Controllers and segues

The first segue

How to pass data

Passing information in the reverse direction

Defining a custom segue

Further improvements

Summary

Introducing CocoaPods and Project Dependencies

Software – the modern way

Ruby and CocoaPods

How to use it

CocoaPods useful commands

Carthage

Swift Package Manager

Useful commands

Popular third-party libraries

Alamofire

Texture

RxSwift

Summary

Improving a Version of a Weather App

Weather forecast API

What's an API?

List of requests

Creating new models

Pure network requests

Alamofire implementation

Improvements using third-party libraries

Better error handling

About the screen

Summary

Building an Instagram-Like App

Tabbed app project

Firebase

Login

The different screens

Custom buttons on the tab bar

Creating a post

Models

Firebase

Filters

Summary

Instagram-Like App Continued

Home screen

Profile screen

Search screen

Favorites screen

Polishing the home screen

Summary

Contributing to an Open Source Project

Your account at GitHub

Forking a repository

Let's contribute

Pull request

Summary

Other Books You May Enjoy

Leave a review - let other readers know what you think

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部