万本电子书0元读

万本电子书0元读

顶部广告

Learning iOS UI Development电子书

售       价:¥

17人正在读 | 0人评论 9.8

作       者:Yari D'areglia

出  版  社:Packt Publishing

出版时间:2015-12-30

字       数:161.5万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Implement complex iOS user interfaces with ease using Swift About This Book Build compelling user interfaces that users will enjoy using the iOS UIKit frameworkMake your iOS apps easily recognizable and familiar with the UIKit frameworkUse this comprehensive, step-by-step guide to create a complete custom layoutWho This Book Is ForThis easy-to-follow guide is perfect for beginner-level iOS developers who want to become proficient in user interface development. It would also be useful for experienced iOS developers who need a complete overview of this broad topic all in one place, without having to consult various sources.What You Will LearnUnderstand the basic requirements to work with iOS user interfacesGet to know about the UI tools, frameworks, and built-in componentsPlot dynamic layout structures using Auto LayoutShape and implement adaptive user interfaces for different screen sizesDraw and animate your user interfaces using the CALayer and UIKit animationsIntercept and handle user touches to create user interface interactivity Create and depict totally custom controls Design with iOS through Core Graphics In Detail Through this comprehensive one-stop guide, you’ll get to grips with the entire UIKit framework and in a flash, you’ll be creating modern user interfaces for your iOS devices using Swift. Starting with an overview of the iOS drawing system and the available tools, you will then learn how to use these technologies to create adaptable layouts and custom elements for your applications. Next, you’ll be introduced to other topics such as animation and code-drawing with Core Graphics, which will give you all the knowledge you need to create astonishing user interfaces. By the end of this book, you will have a solid foundation in iOS user interface development and will have gained valuable insights on the process of building firm and complex UIs. Style and approach This concise yet information-packed guide is full of step-by-step instructions and screenshots of real-life examples, delivered in a direct manner, to get you creating modern user interfaces for your iOS devices using SWIFT in no time.
目录展开

Learning iOS UI Development

Table of Contents

Learning iOS UI Development

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

Downloading the color images of this book

Errata

Piracy

Questions

1. UI Fundamentals

Exploring windows

The contents of windows

Configuring windows

Working with views

Defining the view's geometry

The bounds property

The frame property

The center property

UI hierarchy and views inheritance

Managing with the hierarchy

View and subview visibility

Hierarchy events

Notes about debug

Hands-on code

View drawing and life cycle

View controllers and views

Summary

2. UI Components Overview – UIKit

Exploring text elements

Presenting text with UILabel

Receiving user input with UITextField

Multiline text with UITextView

Notes about the keyboard

Keyboard events

Keyboard configuration

Exploring buttons and selectors

UIButton and user interaction

The target-action pattern

Boolean selection with UISwitch

Control customization

Selecting values with UISlider

Control customization

User choices through UISegmentedControl

Control customization

Selecting values with UIPickerView and UIDatePicker

Updating values with UIStepper

Control customization

View-based components

Showing progress with UIProgressView

Control customization

Working with UIActivityIndicatorView

Control customization

Introducing UIImageView and UIImage

Introducing UIScrollView

Managing and presenting structured data

Introducing UITableView

Introducing UICollectionView

The UIAppearance protocol

Hands-on code

Summary

3. Interface Builder, XIB, and Storyboard

Interface Builder

An overview of the editor

Working with XIB files

Managing user interfaces with Storyboards

Connecting user interfaces with your code

Implementing navigation with Storyboard and segues

The unwind segue

Hands-on code

Summary

4. Auto Layout

How Auto Layout works

Xcode and Auto Layout

Practical introduction to constraints

Xcode helpers

Intrinsic content size

Independence from screen size

Updating constraints programmatically

Working with Auto Layout programmatically

Initializing the views

Adding constraints

Working with multiple views

Relations between views

Summary

5. Adaptive User Interfaces

UI definition with size classes

User interface's traits

Trait collection and trait environment

Working with trait collections

Size classes and Interface Builder

Hands-on code

Image assets and size classes

Working with Dynamic Type

Configurable text size

Exploring text styles

Improving Auto Layout structures with UIStackView

Setting up UIStackView

UIStackView and adaptive layouts

Summary

6. Layers and Core Animation

Exploring layers

Layers and views

The content of a layer

Flat layer

The contents property

The layer delegate

Layer subclassing

Contents properties

The layer geometry

The layers hierarchy

The appearance of layers

Working with core animation

Layers and animations

Implicit animations

Properties animations

Initializing and launching the animation

Keeping the animation result

Handling timing and repetitions

Animations group

Keyframe animations

Removing animations from a layer

View animations

Summary

7. UI Interactions – Touches and Gestures

Events and touches

Touch phases

The UITouch class

Responder chain

Hit-testing

Responding to touch events

Gestures and gesture recognizers

Working with gesture recognizers

Gesture recognizer states

Hands-on code

Summary

8. How to Build Custom Controls

The Thermostat control

Designing a custom control

The UIControl class

Implementing the ThermostatSlider control

Control initialization

Drawing the control

Prototyping using playground

Drawing the borders

Drawing the track

Drawing the handle

Updating the control value

Updating borders

Updating the track

Updating the handle

Touch tracking

Beginning tracking

Continuing tracking

Ending tracking

Sending actions

Customizing the control with UI Appearance

Summary

9. Introduction to Core Graphics

Drawing on the graphic context

How drawing works

Handling the graphic states

The coordinate system

UIKit helpers

Drawing with fill and stroke options

Drawing with blending modes

Drawing with paths

Drawing with paths

Path initialization

Building a path

Drawing the path

Summary

Index

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部