iOS 10 programming for beginners begin your iOS mobile application development journey with this accessible, practical guide

679 60 0
iOS 10 programming for beginners  begin your iOS mobile application development journey with this accessible, practical guide

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

iOS 10 Programming for Beginners Begin your iOS mobile application development journey with this accessible, practical guide Craig Clayton BIRMINGHAM - MUMBAI iOS 10 Programming for Beginners Copyright © 2016 Packt Publishing All rights reserved No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented However, the information contained in this book is sold without warranty, either express or implied Neither the author nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published: December 2016 Production reference: 1191216 Published by Packt Publishing Ltd Livery Place 35 Livery Street Birmingham B3 2PB, UK ISBN 978-1-78646-450-7 www.packtpub.com Credits Author Craig Clayton Reviewer Fernando Rodríguez Commissioning Editor Ashwin Nair Acquisition Editor Reshma Raman Content Development Editor Divij Kotian Technical Editor Gebin George Copy Editor Charlotte Carneiro Project Coordinator Sheejal Shah Proofreader Safis Editing Indexer Tejal Daruwale Soni Graphics Jason Monteiro Production Coordinator Melwyn Dsa About the Author Craig Clayton is a self-taught, Senior iOS Engineer at Adept Mobile, which specializes in building mobile experiences primarily for NBA and NFL teams He also volunteers as the organizer of the Suncoast iOS meetup group in the Tampa/St Petersburg area, and prepares presentations and hands-on talks for the group as well as for other groups in the community He has worked with both adults and kids who wish to start learning how to program, or those who aspire to become iOS developers On top of all that, starting in 2017 Craig has plans to launch Cocoa Academy online, which will specialize in bringing a diverse list of iOS courses The courses will range from building apps to games for all programming levels I would like to thank my friends and family for their support, especially my mom, Corliss Smith I hope that one day I will get to be there for you when you write your book I would also like to thank Kim Smallman; you were amazing with your help and guidance in every step of the way Since you are not a programmer, I really appreciated getting your feedback on things that beginners might not fully understand About the Reviewer Fernando Rodríguez has more than 20 years of experience in developing and teaching other developers Although currently specialized in the Apple stack of tools, he's a nerd of all trades with a strong interest in Big Data and automated trading Fernando has taught iOS development at the Big Nerd Ranch, Udacity, and Keep coding, ranging from Facebook developers to indie devs He was awarded for being an outstanding instructor at Udemy for his intro course to iOS development This course was mentioned in the Financial Times, Venture beat, and Information Week I'd like to thank Sheejal Shah from Packt for her patience and Craig Clayton for his hard work www.PacktPub.com eBooks, discount offers, and more Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub com and as a print book customer, you are entitled to a discount on the eBook copy Get in touch with us at customercare@packtpub.com for more details At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks https://www.packtpub.com/mapt Get the most in-demand software skills with Mapt Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career Why subscribe? • Fully searchable across every book published by Packt • Copy and paste, print, and bookmark content • On demand and accessible via a web browser Customer Feedback Thank you for purchasing this Packt book We take our commitment to improving our content and products to meet your needs seriously – that's why your feedback is so valuable Whatever your feelings about your purchase, please consider leaving a review on this book's Amazon page Not only will this help us, more importantly it will also help others in the community to make an informed decision about the resources that they invest in to learn You can also review for us on a regular basis by joining our reviewers club If you're interested in joining, or would like to learn more about the benefits we offer, please contact us: customerreviews@packtpub.com Table of Contents Preface ix Chapter 1: Getting Familiar with Xcode Getting started The Xcode interface Navigator panel Standard editor Utilities panel Debug panel Toolbar 7 Generic iOS Device 10 iOS device 10 Window Pane Controls 14 Summary 16 Chapter 2: Building a Foundation with Swift 17 Playgrounds – an interactive coding environment 18 Data types – where it all starts 20 String 20 Integer data type 21 Floating-point numbers 21 Booleans 21 Variables and constants – where data is held 22 Creating a variable with a String Creating a variable with an Integer (Int) Debug and print() – detecting your bugs Adding floating-point numbers Creating a Boolean Hungarian notation Why constants versus variables? Comments – leaving yourself notes or reminders [i] 22 22 23 24 25 27 28 28 .. .iOS 10 Programming for Beginners Begin your iOS mobile application development journey with this accessible, practical guide Craig Clayton BIRMINGHAM - MUMBAI iOS 10 Programming for Beginners... from a Set 100 Summary 101 Chapter 5: Starting the UI Setup 103 Useful terms 103 View Controller 104 Table View Controller 104 Collection View Controller 105 Navigation Controller 105 Tab Bar... Controller 105 Tab Bar Controller 106 Storyboard 106 Segue 107 Auto layout 108 Model View Controller (MVC) 108 App Tour 108 Adding our App assets 122 Explore tab 109 Locations 110 Restaurant listings 111

Ngày đăng: 15/09/2020, 11:37

Mục lục

  • Chapter 1: Getting Familiar with Xcode

    • Getting started

    • The Xcode interface

      • Navigator panel

      • Chapter 2: Building a Foundation with Swift

        • Playgrounds – an interactive coding environment

        • Data types – where it all starts

          • String

          • Variables and constants – where data is held

            • Creating a variable with a String

            • Creating a variable with an Integer (Int)

            • Debug and print() – detecting your bugs

            • Why constants versus variables?

            • Comments – leaving yourself notes or reminders

            • Type safety and type inference

              • Concatenating strings

                • String interpolation

                • Operations with our Integers

                  • Increment and decrement

                  • If-Statements – having fun with logic statements

                  • Optionals and Optional Bindings

                    • Why optionals?

                    • Let's Work

                    • Chapter 3: Digging Deeper

                      • Creating a Playground project

                      • Control flow

                        • The for…in loop

                        • The repeat…while loop

                        • Chapter 4: Digging into Collections

                          • Arrays

                            • Creating an empty array

                            • Creating an array with initial values

                            • Creating a mutable array

Tài liệu cùng người dùng

Tài liệu liên quan