Показаны сообщения с ярлыком Tips&Tricks. Показать все сообщения
Показаны сообщения с ярлыком Tips&Tricks. Показать все сообщения

11 апр. 2017 г.

8 апр. 2017 г.

2 окт. 2016 г.

[UDEMY] iOS 10 & Swift 3: From Beginner to Paid Professional


The most comprehensive course on iOS development - become a master of app development
Welcome to the world's most comprehensive course on iOS development. This course is designed like an in-person coding bootcamp to give you the most amount of content and help with the least amount of cost.

Here are some of the things you'll be able to do after taking this course:
- Submit apps to the app store
- Understand programming & basic algorithms
- Work fluently with Swift 3 & iOS 10
- Apply to jr iOS development jobs
- Work as an iOS contractor

Файлы примеров: присутствуют
Формат видео: MP4
Видео: AVC, 1920x1080, 16:9, 29.97fps, 1036kbps
Аудио: AAC, 48kHz, 120kbps, stereo

25 сент. 2016 г.

22 сент. 2016 г.

SWIFTER - 100 must know tips for Swift (2nd Edition)




Год выпуска: 2016
Автор: Wei Wang: https://leanpub.com/u/onevcat
Язык: Английский
Издательство: Leanpub: https://leanpub.com
Серия: Swift
Формат: PDF, EPUB
Качество: eBook (изначально компьютерное)
Количество страниц: 235

Описание: If you are not satisfied with those beginner book on Swift, this book is what you are looking for. It covers 100 super useful tips to help you write better Swift code. I believe you could pick up some invaluable gems from these tips.

Если Вы не получаете удовлетворение от книг для начинающих по Swift, эта книга то что Вы искали. Она содержит сотню супер полезных советов, которые помогут Вам лучше писать код на языке Swift. Я верю, что некоторые из них вам обязательно пригодятся!

В раздаче содержится файл playground со всеми примерами из данной книги!

28 июл. 2016 г.

Swift 3 Functional Programming



Автор: Fatih Nayebi
Название: Swift 3 Functional Programming
Издательство: Pact Publishing
Год: 2016
ISBN: 978-1785883880
Язык: English
Формат: pdf, epub
Размер: 10 mb
Страниц: 296

Functional programming (FP) is getting a lot of attention as it eases many of the difficulties faced in object-oriented programming (OOP), such as testability, maintainability, scalability, and concurrency. Swift has a lot of functional programming features that can be easily used, but most Objective-C and Swift programmers are not familiar with these tools.

This book aims to simplify the functional programming paradigms and make it easily usable for Swift programmers, showing you how to use popular functional programming techniques to solve many of your day-to-day development problems. Whether you are new to functional programming and Swift or experienced, this book will provide you with the skills you need to design and develop high quality, easily maintainable, scalable, and efficient applications for iOS, rnacOS, tvOS, and watchOS. Through this book, you'll learn to build bug-free, maintainable code using functional programming.

11 июн. 2016 г.

Raywenderlich The Swift Apprentice: Beginning Programming with Swift 2 v1.3



Год выпуска: 2016
Автор: Janie Clayton, Alexis Gallagher, Matt Galloway, Eli Ganem, Erik Kerber, Ben Morrow.
Жанр: Разработка
Издательство: Raywenderlich
Язык: Английский
Серия: Tutorials
ISBN: 978-1942878131
Формат: PDF
Качество: eBook (изначально компьютерное)

Свифт это самый простой способ, чтобы начать разработку на платформах Apple: IOS, OS X, watchOS и tvOS. С выходом Swift 2 в 2015 году, в него упаковано еще больше возможностей и усовершенствований.

Learn How To Program with Swift 2!
Swift is the easiest way to get started developing on Apple's platforms: iOS, OS X, watchOS and tvOS. With the release of Swift 2 in 2015, the Swift language is packed with even more features and enhancements.

In this book, you'll learn the basics of Swift from getting started with playgrounds to simple operations to building your own types. Everything you'll learn is platform-neutral; you'll have a firm understanding of Swift by the end of this book, and you'll be ready to move on to whichever app platform you're interested in.

Who This Book Is For:
This book is for complete beginners to Swift 2. No prior programming experience is necessary!
- Topics Covered in The Swift Apprentice
- Playground basics: Learn about the coding environment where you can quickly and easily try out your code as you learn.
- Numbers and strings: These are the basic kinds of data in any app – learn how to use them in Swift.
- Making Decisions: Your code doesn't always run straight through – learn how to use conditions and decide what to do.
- Functions: Group your code together into reusable chunks to run and pass around.
- Collection Types: Discover the many ways Swift offers to store and organize data into collections.
- Building Your Own Types: Learn how to model elements in your app using classes, structures and enumerations.
- Protocols & Protocol-Oriented Programming: Define protocols to make your code more interface-based and compositional.
- Error Handling: Make your code more robust and flexible by signaling and handling error conditions gracefully.
- Functional Programming: Learn how to use Swift in a functional style and how this can make your code clearer and easier to reason about.
- After reading this book and completing your Swift apprenticeship by working through the included exercises and challenges, you'll be ready to take on app development on the platform of your choice!

С исходными кодами / With source code

Скачать / Download

14 мар. 2016 г.

Создание шаблона (темплейта) файла для Xcode / Create Xcode source template


В Xcode любой версии при создании нового файла в проекте мы видим перечень готовых шаблонов исходных файлов, которые уменьшают написания стандартных, рутинных строк кода. Дальше будет более понятней что я имею в виду.

Например нам  нужно создать синглетон класс. Наши действия:
- Файл -> Новый -> Файл -> Соурс -> Свифт-файл (File -> New -> File -> Source -> Swift file)
- В новом файле написать код синглетона (хоть это всего лишь несколько строчек кода - это все-таки занятое время для шаблона)

import Foundation

class NewFile {

static let sharedInstance = NewFile()
private init(){}

}

Можем ускорить этот процесс создания, создав для Xcode шаблон синглетона, который будет присутствовать в списке шаблонов при добавлении нового файла в проект.

Шаблон состоит из имени и расширения (как обычный пакет в OS X): TemplateName.xctemplate

Сам пакет состоит из таких файлов:
- Иконка файла (48х48), формата *.png (включая @2х (96х96) для ретина дисплеев)
- plist-файл в котором описывается наш шаблон
- swift-файл с кодом нашего шаблона.

Приступим:

- Создадим папку с расширением шаблона: Swift Singleton.xctemplate:


Все следующие действия будут происходить в созданной нами папке-шаблоне

- Перейдем в папку и скопируем туда два файла-иконки (по которому мы в будущем будем ориентироваться что это наш шаблон синглетон). Плюнем на все свои правила и закинем туда обычные иконки свифт-файла:

- Создадим plist-файл и опишем наш шаблон (не буду вести подробный разбор каждого раздела, думаю что все предельно ясно из названий самих разделов):
Содержимое:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AllowedTypes</key>
<array>
<string>public.swift-source</string>
</array>
<key>DefaultCompletionName</key>
<string>File</string>
<key>Description</key>
<string>A Swift Singleton.</string>
<key>Kind</key>
<string>Xcode.IDEKit.TextSubstitutionFileTemplateKind</string>
<key>MainTemplateFile</key>
<string>___FILEBASENAME___.swift</string>
<key>SortOrder</key>
<string>5</string>
<key>Summary</key>
<string>A Swift Singleton</string>
</dict>
</plist>

- Переходим к содержимому нашего сердца шаблона - swift-файл:
Содержимое:

//
//  ___FILENAME___
//  ___PROJECTNAME___
//
//  Created by ___FULLUSERNAME___ on ___DATE___.
//___COPYRIGHT___
//

import Foundation

class ___FILEBASENAMEASIDENTIFIER___ {

    static let sharedInstance = ___FILEBASENAMEASIDENTIFIER___()
    private init(){}
    
}

___FILEBASENAMEASIDENTIFIER___ - вместо этого идентификатора будет подставляться введенное имя юзером во время создания нового файла-синглетона. Остальные идентификаторы интуитивно понятны.

- Теперь осталось перейти: ~Library/Developer/Xcode/Templates/File Templates/

Папки Templates и File Templates нужно будет создать, т.к. они отсутствуют (если Вы не ставили шаблоны, например с помощью утилиты Alcatraz). File Templates - это не обязательное имя. Я для себя назвал User Templates.

- Осталось скопировать наш шаблон-папку по выше указанному пути, и создать новый файл в проекте. Теперь в списке разделов (для iOS) появится дополнительный наш раздел, где будет присутствовать наш шаблон-синглетон (Если что-то пошло не так, всегда можно перезапустить Xcode).


Вводим имя файла и наслаждаемся дальнейшей работой уже с готовым шаблоном.

Примеры шаблонов можно посмотреть в самом Xcode:   /Applications/Xcode.app/ Contents/Developer/Platforms/ iPhoneOS.platform/Developer/ Library/Xcode/Templates/ File Templates/Source

19 февр. 2016 г.

Swift. Основы разработки приложений под iOS



Усов В.А.

Тема: Библиотека программиста
Год: 2016
Страниц: 304
Обложка: Обл Ц
Формат: 60х90/16
Баркод: 9785496022569
ISBN: 978-5-496-02256-9

Swift — быстрый, современный, безопасный и удобный язык программирования — появился совсем недавно и стал огромным сюрпризом для iOS-общественности. И вот, спустя год, Apple выпустила версию 2.0, а следом и 2.1, привнесшую в процесс разработки ряд значительных нововведений.

Данная книга содержит исчерпывающую информацию для всех желающих научиться программировать на замечательном языке Swift и создавать собственные iOS-приложения. Вы найдете не только теоретический материал, но и большое количество практических примеров и заданий, которые позволят постичь все тонкости нового языка. Дерзайте, ведь, изучив Swift, вы сможете создавать приложения для любой платформы — iOS, OS X, tvOS или watchOS.

Source codes from Ray Wenderlich books (except tvOS book)



Core Data by Tutorials

Raywenderlich 2D iOS and tvOS Games by Tutorials

Raywenderlich iOS 9 by Tutorials Learning the new ios 9 apis with swift 2

Raywenderlich iOS Animations by Tutorials v2.0

Raywenderlich Swift Apprentice

Raywenderlich The iOS Apprentice Beginning iOS Development with Swift 2 4th Edition

Raywenderlich WatchOS 2 by Tutorials

18 февр. 2016 г.

Beginning Swift Programming: Kids Edition by Charles Ivan Mozar



Get your children into programming! Beginning Swift Development will help your kid learn the programming language through fictional instruction.

Instructions ( for parents ):
1. Download Xcode
2. Create a new playground
3. Get Him/Her to play with it ( or follow along the book )

Core Data (objc)



Core Data best practices by example: from simple persistency to multithreading and syncing

This book strives to give you clear guidelines for how to get the most out of Core Data while avoiding the pitfalls of this flexible and powerful framework. We start with a simple example app and extend it step by step as we talk about relationships, advanced data types, concurrency, syncing, and many other topics.

Later on, we go well beyond what’s needed for the basic example app. We’ll discuss in depth how Core Data works behind the scenes, how to get great performance, the trade-offs between different Core Data setups, and how to debug and profile your Core Data code.

All code samples in this book are written in Swift. We show how you can leverage Swift’s language features to write elegant and safe Core Data code. We expect that you’re already familiar with Swift and iOS, but both newcomers and experienced Core Data developers will find a trove of applicable information and useful patterns.

7 февр. 2016 г.

SAConfettiView дождь из конфети / rain of confetti



SAConfettiView - позволяет добавить в ваше приложение представление с дождем из конфети, цветных треугольников, звездочек, кристаллов или ваших собственных изображений.

SAConfettiView is the easiest way to add fun, multi-colored confetti to your application and make users feel rewarded. Written in Swift, SAConfettiView is a subclass of UIView and is highly customizable. From various types and colors of confetti to different levels of intensity, you can make the confetti as fancy as you want.

2 февр. 2016 г.

31 дек. 2015 г.

26 нояб. 2015 г.

Swift Algorithms & Data Structures



Author: Wayne Bishop
Length: 88 pages
Edition: 1st
Language: English
Publisher: Wayne Bishop
Publication Date: 2015
ISBN-10: 1320479243

Written for students and professionals, Swift Algorithms & Data Structures blends modern code, illustrations and computer science to help you pass the technical interview or build your next app. When creating modern apps, much of the theory inherent to algorithms is often overlooked. Swift Algorithms & Data Structures takes a fresh approach to explain concepts that power search engines, social networks and database systems.

Introduced by Apple in 2014, Swift is quickly becoming the language of choice due to its simplicity and modern syntax. See how Swift works to create solutions for everyday systems as well as mobile apps.

WHAT'S INSIDE
Based on the popular essay series, the book features Swift examples and beautiful illustrations for Linked Lists, Big O Notation, Sorting, Generics, Closures, Hash Tables, Binary Search Trees, Tree Balancing (Rotations), Tries, Stacks & Queues, Graphs Dijkstra's Shortest Path, Heaps, Depth-First Search and Breadth-First Search.

Table of Contents
- Linked Lists
- Big O Notation
- Sorting
- Generics
- Closures
- Hash Tables
- Binary Search Trees
- Tree Balancing (Rotations)
- Tries
- Stacks & Queues
- Graphs
- Dijkstra's Shortest Path
- Heaps & Heapsort Operations
- Depth-First Search
- Breadth-First Search

23 нояб. 2015 г.

Swift Pocket Reference, 2nd Edition



Год выпуска: 2015
Автор: Anthony Gray
Жанр: Разработка
Издательство: O'Reilly Media
Серия: Pocket Reference
ISBN: 978-1-4919-4007-5
Формат: PDF
Качество: eBook
Количество страниц: 230

Описание:
Этот краткий справочник карманного типа позволяет быстро найти ответы на вопросы, возникающие во время разработки и отладки прикладных программ на Swift — мультипарадигматическом языке программирования компании Apple. Он очень удобен для изучения современных языковых средств Swift, включая типовую безопасность, обобщения, определение типов, замыкания, кортежи, автоматическое управление памятью и поддержку Юникода.
Язык Swift специально предназначен для работы в средах Cocoa и Cocoa Touch и может использоваться совместно с языком Objective-C для обращения к прикладным программным интерфейсам, реализованным на обоих этих языках. Несмотря на то что язык Swift продолжает развиваться, уже ясно, что он имеет все предпосылки стать избранным средством для разработки программного обеспечения на платформах iOS и OS X.

Основные темы книги

- Цикл REPL и интерактивные игровые площадки
- Поддерживаемые типы данных, в том числе символьные строки, массивы и словари
- Переменные и константы
- Порядок выполнения программы: организация циклов и переходов по условию
- Классы, структуры данных, перечисления, функции и протоколы
- Замыкания, подобные блокам в Objective-C и лямбда-выражениям в C#
- Необязательные типы данных, которые не имеют явных значений
- Операторы обычные и специальные и их перегрузка
- Управление доступом: ограничение доступа к типам данных, методам и свойствам
- Встроенные глобальные функции и требования к их параметрам

Этот краткий справочник карманного типа составлен таким образом, чтобы читатель мог быстро найти ответы на насущные вопросы, возникающие во время разработки и отладки прикладных программ на языке программирования Swift.
Справочник удобен для изучения современных языковых средств Swift, включая типовую безопасность, обобщения, определение типов, замыкания, кортежи, автоматическое управление памятью, поддержку необязательных типов и Уникода.

Справочник рассчитан на широкий круг читателей, интересующихся программированием на Swift и разработкой программного обеспечения на платформах iOS и Mac OS X.

14 нояб. 2015 г.

Intermediate iOS 9 Programming with Swift


Title: Intermediate iOS 9 Programming with Swift
Author: Simon Ng
Publisher: AppCoda.com
Format: pdf
Pages: 425

What You Will Learn

Chapter 1 - Adaptive UI Using Universal Storyboards and Size Classes
Chapter 2 - Adding Sections and Index List in UITableView
Chapter 3 - Animating Table View Cell
Chapter 4 - Reading and Parsing JSON
Chapter 5 - How to Integrate Twitter and Facebook Sharing
Chapter 6 - How to Create Email with Attachment
Chapter 7 - Sending SMS and MMS
Chapter 8 - How to Get Direction and Draw Route on Map
Chapter 9 - How to Search Points of Interest Using Local Search
Chapter 10 - Audio Recording and Playback
Chapter 11 - Scan QR code using AVFoundation Framework
Chapter 12 - Working with URL Schemes
Chapter 13 - Working with Camera
Chapter 14 - Video Capturing and Playback using AVKit Framework
Chapter 15 - Display Banner Ads using iAd
Chapter 16 - Using Custom Fonts
Chapter 17 - AirDrop
Chapter 18 - Building Grid Layout Using Collection View
Chapter 19 - Interacting with Collection View
Chapter 20 - Adaptive Collection View
Chapter 21 - Building a Today App Extension
Chapter 22 - Building a Sidebar Menu
Chapter 23 - View Controller Transitions and Animations
Chapter 24 - Building a Slide Down Menu Like Medium App
Chapter 25 - Self Sizing Cells and Dynamic Type
Chapter 26 - XML Parsing and RSS
Chapter 27 - Apply a Blurred Background Using UIVisualEffect
Chapter 28 - Using Touch ID for Authentication
Chapter 29 - Building a Carousel-like User Interface
Chapter 30 - Working with Parse
Chapter 31 - Preloading Existing Data in Core Data

31 окт. 2015 г.

Raywenderlich 2D iOS & tvOS Games by Tutorials: Beginning 2D iOS and tvOS Game Development with Swift 2


Год выпуска: 2015
Автор: Ray Wenderlich, Mike Berg, Michael Briscoe, Ali Hafizji, Neil North, Toby Stephens, Rod Strougo, Marin Todorov.
Жанр: Разработка
Издательство: Raywenderlich
Язык: Английский
Серия: Tutorials
ISBN: 978-1942878148
Формат: PDF
Качество: eBook (изначально компьютерное)
Количество страниц: 801

Описание: Узнайте, как создавать 2D iOS и tvOS игры!
Узнайте, как сделать iOS и tvOS игры на языке Swift, используя встроенный фреймворк 2D от Apple: Sprite Kit. Через серию мини-игр и задач, вы пройдете путь от начинающего до продвинутого программиста и узнаете все, что нужно, чтобы создать свою собственную игру!
Материалы в книге полностью адаптированы под iOS9, Swift 2.0 и Xcode 7.

С исходными кодами / With source codes


Core Data by Tutorials Second Edition: iOS 9 and Swift 2 Edition



Title: Core Data by Tutorials, 2nd Edition
Authors: Aaron Douglas, Saul Mora, Matthew Morey, and Pietro Rea
Publisher: Razeware LLC; 2nd edition (September 30, 2015)
ISBN13: 978-1942878100
Media: PDF
Level: Intermediate to Advanced

Take control of your data in iOS apps using Core Data, Apple’s powerful object graph and persistence framework.

С исходными кодами / With source code