28%
Professional Swift

Professional Swift

          
5
4
3
2
1

Out of Stock


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Notify me when this book is in stock
Add to Wishlist

About the Book

Transition from Objective-C to the cleaner, more functional Swift quickly and easily Professional Swift shows you how to create Mac and iPhone applications using Apple's new programming language. This code-intensive, practical guide walks you through Swift best practices as you learn the language, build an application, and refine it using advanced concepts and techniques. Organized for easy navigation, this book can be read end-to-end for a self-paced tutorial, or used as an on-demand desk reference as unfamiliar situations arise. The first section of the book guides you through the basics of Swift programming, with clear instruction on everything from writing code to storing data, and Section II adds advanced data types, advanced debugging, extending classes, and more. You'll learn everything you need to know to make the transition from Objective-C to Swift smooth and painless, so you can begin building faster, more secure apps than ever before. Get acquainted with the Swift language and syntax Write, deploy, and debug Swift programs Store data and interface with web services Master advanced usage, and bridge Swift and Objective-C Professional Swift is your guide to the future of OS X and iOS development.

Table of Contents:
Introduction xxiii Part I: Building Applications with Swift Chapter 1: A Swift Primer 3 What Is Swift? 4 Why Learn Swift? 5 Working with Constants and Variables 5 Understanding Swift Data Types 6 Using Numerical Types 6 Boolean Types 7 Using Character Types 8 Using Arrays 10 Using Dictionaries 10 Using Tuples 11 Working with Type Annotations 12 Minimizing Annotation with Type Inference 13 Clarifying Code with Type Aliasing 14 Working with Operators 15 Using Basic Operators 15 Using Compound Assignment Operators 17 Using Overflow Operators 17 Using Range Operators 18 Using Logical Operators 18 Using Comparison Operators 19 Using Custom Operators 19 Making Decisions with Control Flow 19 Using Conditional Statements 20 Using Loops 23 Control Transfer Statements 25 Grouping Types with Enumerations 26 Working with Functions 27 Declaring Functions 27 Specifying Parameter Names 28 Defining Default Parameters 29 Specifying Variadic Parameters 29 Specifying Constant, Variable, and In-Out Parameters 30 Function Types 31 Using Closures 32 Summary 34 Chapter 2: Writing a Swift Program 35 Setting Up Xcode 36 Downloading from Apple’s Developer Portal 36 Downloading Xcode 36 Experimenting with Playgrounds 38 Using Playgrounds in Xcode 38 A Simple Example in Playground 38 A More Exciting Playground Example 40 Writing Swift in Xcode 41 Creating a New Swift Project 42 Creating the Swiftisms App 44 Creating the Interface 45 Creating Connections between the View Controller and the Object 46 Connecting the Buttons and the Action 50 Displaying Random Strings 51 What Next? 53 Debugging Swift Applications 53 Understanding Breakpoint Types 54 Setting Breakpoints 54 Using the Debugger 55 Using the Hierarchical View 56 Using the Debugger View and the po Command 56 Executing the Program 58 Summary 59 Chapter 3: Classes, Structs, and Enums 61 Working with Classes and Structs 62 Defining Classes and Structs 62 Initializing Classes and Structs 64 Creating an Initial Value 64 Defining Your Own Initializer 65 Writing an Initializer 66 Working with Multiple Initializers 68 Deinitializing Classes 69 Working with Properties 70 Using Simple Properties 70 Using Lazy Properties 72 Using Computed Properties 72 Observing Property Changes 73 Understanding Methods 74 Understanding the Difference between Classes and Structs 76 Working with Enumerations 78 Summary 79 Chapter 4: Concurrency in Swift 81 What Is Concurrency? 82 Understanding Processes 82 Understanding Threads 84 Why Concurrency? 85 Designing Concurrent Programs 85 Concurrency in Ios and Os X 86 Understanding Event Loops 86 Understanding Run Loops 87 Understanding Asynchronous Methods 87 Understanding NSTimer 89 Understanding NSThread 91 Understanding Grand Central Dispatch 92 Summary 94 Chapter 5: Interfacing with Web Services 95 Understanding Web Services 95 Implementing a Web Services Client 97 Signing Up for a Firebase Account 97 Laying Out the User Interface 98 Hooking Up the Add Album View Controller 101 Adding the Album Creation View Controller 103 Hooking Up the Segue 104 Creating the Album Model 104 Communicating with Firebase 106 Creating the Firebase Connector 106 Making Asynchronous Web Requests 109 Processing JSON Data 110 Creating New Albums 111 Deleting Albums 112 Wiring Up the View and Data Models 112 Wiring Up the Segue 115 Run the Application 116 Summary 118 Chapter 6: Storing Data with Core Data 119 What Is Core Data? 120 The Core Data Stack 120 Using Core Data with Swift 121 Setting Up the Birthdays Application 122 Getting User Input 128 Examining Xcode Files 129 Adding Methods to the AppDelegate Class 134 Handling the Dialog Sheet 135 Hooking Up the Dialog Sheet 137 Displaying Data 137 Implementing the Table View’s Behavior 138 The Completed Application Delegate 140 Summary 145 Part II: Advanced Swift Concepts Chapter 7: Extending Classes 149 Working with Class Extensions 150 Adding Methods to Classes 150 Adding Properties to Classes 152 Mutating Classes in Extensions 153 Specifying Behavior with Protocols 153 Adopting Protocols 154 Declaring Properties and Methods 154 Working with Optional Methods and Properties 156 Protocols Are Types 158 Checking for Protocol Conformance 158 Using Protocol Types in Collections 159 Composing Protocols 160 Inheriting from Other Protocols 160 Adopting Protocols in Class Extensions 161 Working with Generics 163 Generic Classes 164 Working with Type Constraints 165 Summary 166 Chapter 8: Advanced Data Types 167 Working with Enums and Algebraic Data Types 168 Matching Patterns 168 Putting It All Together with JSON 170 Working with Optional Types 172 Working with Null Values 172 Excluding Null Values 173 Understanding Swift’s Version of Null 173 Chaining Optional Values 174 Understanding Type Casting 175 Grouping Values with Tuples 177 Custom Operators 179 Defining Custom Operators 183 Defining Precedence and Associativity 183 A Final Word about Operators 186 Using Functions and Closures 187 Summary 188 Chapter 9: Bridging Swift and Objective‐c 189 The Successor to Objective-C 190 Introducing Namespaces and Modules 191 Organizing Code with Namespaces 191 Distributing Code with Modules 193 Using Access Modifiers 193 Specifying an Access Level 194 How Swift and Objective-C Interact 194 Using Swift Classes in Objective-C 195 Generating an Objective-C Header 195 Objective-C and Swift-Only Features 196 Using Swift Code in an Objective-C Application 196 Using Objective-C in Swift 198 Generating a Bridging Header 198 Calling Objective-C Code from Swift 199 Using C and C++ Code with Swift 202 Working with C Scalar Types 202 Accessing Memory with C Pointers 203 Working with Global Constants and Defines and Swift 204 Calling C Code from Swift 204 Using C++ Code in Swift 206 Summary 206 Chapter 10: Debugging Swift Applications 207 The Art of Debugging 208 Creating CircleView 208 Drawing the Circle 209 Adding Sliders 210 Completing the Project 211 Printing Values 213 Working with Debuggers 215 Examining Errors with lldb, the LLVM Debugger 216 Basic Breakpoints 216 Using lldb to Inspect Programs 218 Using the Variable Pane 218 Entering Commands in the lldb Command Prompt Pane 218 Displaying Code Hierarchy with the lldb Ribbon 219 Walking through a Program with the lldb Ribbon 221 Removing or Disabling Breakpoints 222 Setting Conditional Breakpoints 222 Setting Symbolic Breakpoints 223 Exploring the Debugger 225 Summary 228 Chapter 11: the Swift Runtime 229 What Is a Runtime? 230 Understanding the Objective‐C Runtime 231 Dispatching Methods Dynamically in Objective‐C 231 Message Passing 233 Resolving Methods 233 Messages and Methods 237 Exploring the Swift Runtime 238 Understanding Virtual Method Tables 239 Loading Swift Programs 241 Summary 245 Appendix: An Overview of C 247 Comparing Procedural and Object-Oriented Programming Styles 248 Understanding the Importance of C Language Syntax 249 Defining Data with Variables and Arrays 249 Integral Data Types 249 Floating-Point Data Types 251 Arrays 252 Typedefs 253 Enums 254 Performing Calculations with Operators 254 Arithmetic Operators 254 Logical Operators 256 Relational Operators 258 Bitwise Operators 258 Bitshift Operators 259 Referencing Data with Pointers 260 Organizing Data with Structs 261 Generalizing Data with Unions 261 Referencing Functions with Function Pointers 262 Index 265


Best Sellers


Product Details
  • ISBN-13: 9781119016779
  • Publisher: John Wiley & Sons Inc
  • Publisher Imprint: Wrox Press
  • Depth: 19
  • Height: 234 mm
  • No of Pages: 320
  • Series Title: Paperback
  • Weight: 544 gr
  • ISBN-10: 1119016770
  • Publisher Date: 10 Jul 2015
  • Binding: Paperback
  • Edition: PAP/PSC
  • Language: English
  • Returnable: N
  • Spine Width: 18 mm
  • Width: 188 mm


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Click Here To Be The First to Review this Product
Professional Swift
John Wiley & Sons Inc -
Professional Swift
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Professional Swift

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA