Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)

所需积分/C币:28 2017-11-01 07:52:45 12.96MB PDF

英文版的Swift编程入门书,无论是否以前有编程经验,这本书都适合您学习swift编程语言。Swift语言是苹果公司在2014年的WWDC大会上发布的全新编程语言,可与Object-C共同运行于MAC OS和iOS平台。Swift语言继不仅继承了C语言以及Objective-C的特性,且克服了C语言的兼容性问题。
Swift Programming: The Big Nerd Ranch Guide by matthew Mathias and john Gallagher WOW! eBook www.wowebook.org Copyright C 2015 Big Nerd Ranch, LLC All rights reserved. Printed in the United States of America. This publication is protected by copyright, and permission must be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval system, or transmission in any form or by any means electronic, mechanical, photocopying, recording, or likewise. For information regarding permissions, contact Big Nerd ranch, LLC 200 Arizona ave ne Atlanta, GA 30307 (770)817-6373 http://www.bignerdranch.com/ book-comments@bignerdranch.com The 10-gallon hat with propeller logo is a trademark of big Nerd ranch, LLC Exclusive worldwide distribution of the English edition of this book by Pearson Technology Group 800 East 96th Street Indianapolis, IN 46240 USA http://www.informit.com The authors and publisher have taken care in writing and printing this book but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals ISBN-10013439805X ISBN-13978-0134398051 First edition, first printing, December 2015 Release e1.1. 1 WOW! eBook www.wowebook.org WOW! eBook www.wowebook.org Dedication For my wife, who is smart, strong, and virtuous. And for my family, who has given me every opportunity to live a good life M.M For my wife and best friend; you are "s'wonderful. And for my daughters, who bring me Joy every day JG WOW! eBook www.wowebook.org WOW! eBook www.wowebook.org Acknowledgments We received a lot of help in writing this book. Without it, this book would not be what it is, and it may have never even happened. Thanks are due First, we need to say thank you to our colleagues at big nerd ranch Thank you to Aaron Hillegass for providing us with the opportunity to write this book. It has been immensely gratifying to learn and teach Swift. Big Nerd ranch provided us with the time and space to work on this project. we hope that this book lives up to the trust and the support that we have received Particular thanks are also due to our colleagues in the cocoa pod at big nerd ranch. Your careful teaching revealed many bugs in the text, and your thoughtful recommendations led to many improvements in our approach. Those of you who are not instructors helped to review the materials, vetted our approach, and provided countless suggestions that we never thought of. It is truly wonderful to have colleagues such as you. Thank you Pouria Almassi, Matt Bezark, Nate Chandler, Step Christopher, Kynerd Coleman, Matthew Compton, Joseph Dixon, Robert Edwards, Sean Farrell, Brian Hardy, Florian Harr, Tom Harrington, Bolot Kerimbaev, Christian Keur, JJ Manton, Bill Monk, Chris Morris, Adam Preble, Scott Richie, Jeremy Sherman, Steve Sparks, Rod Strougo, TJ Usiyan, Zach Waldowski, Thomas Ward. and mike Zornek Our colleagues in operations and sales are instrumental. Classes would literally never be scheduled without their work. Thank you Shannon Coburn, Nicole Rej, Heather Brown Tasha Schroader, mat Jackson, and Chris Kirksey for all of your hard work. we cannot do what you do Second, we need to acknowledge the many talented folks who worked on the book with US Elizabeth Holaday, our editor, helped refine the book, crystallize its strengths, and diminish its weaknesses Simone Payment, our copy-editor, found and corrected errors and ultimately made us look smarter than we are Ellie volckhausen designed our cover; that skateboard looks pretty rad Chris loper designed and produced the print book and the epub and Kindle versions Finally, thank you to our students. We learned with you and for you. Teaching is part of the greatest thing that we do, and it has been a pleasure working with you. We hope that the quality of this book matches your enthusiasm and determination WOW! eBook www.wowebook.org Table of contents Introduction Learning swift Whither Objective-C? Prerequisites How This Book Is Organized How to Use this book Challenges For the more curious Typographical Conventions Necessary Hardware and Software Using an eBook Before We begin L. Getting Started 1. Getting started Getting started with Xcode Playing in a playground Varying variables and Printing to the Console You Are on Your Way! Bronze Challenge 2. Types, Constants, and variables I ypes Constants ys, variables String Interpolation Bronze challenge lL. The basics 3. Conditionals if/else Ternary operator WOW! eBook www.wowebook.org Nested ifs else Bronze challenge 4. Numbers ntegers Creating Integer Instances Operations on Integers Integer division Operator shorthand Overflow operators Converting Between Integer Types Floating-Point Numbers Bronze Challenge 5. Switch What is a switch Switch Ra anges Value binding Where clauses Tuples and pattern matching sWitch vs if/else Bronze Challenge 6. Loops for-in Loops r case A Quick Note on Type Inference r loops while Loops repeat-While Loops Control transfer statements Redux Bronze challenge WOW! eBook www.wowebook.org

...展开详情
试读 127P Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)
img
coyzhu

关注 私信 TA的资源

上传资源赚积分,得勋章
    最新推荐
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书) 28积分/C币 立即下载
    1/127
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第1页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第2页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第3页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第4页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第5页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第6页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第7页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第8页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第9页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第10页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第11页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第12页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第13页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第14页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第15页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第16页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第17页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第18页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第19页
    Swift Programming The Big Nerd Ranch Guide (英文版Swift编程入门书)第20页

    试读已结束,剩余107页未读...

    28积分/C币 立即下载 >