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

28 окт. 2015 г.

Raywenderlich watchOS 2 by Tutorials: Making Apple Watch apps with watchOS 2 and Swift




Год выпуска: 2015
Автор: Ryan Nystrom, Scott Atkinson, Soheil Azarpour, Matthew Morey, Ben Morrow, Audrey Tam, Jack Wu.
Жанр: Разработка
Издательство: Raywenderlich
Язык: Английский
Серия: Tutorials
ISBN: 978-1942878124
Формат: PDF
Качество: eBook (изначально компьютерное)
Количество страниц: 466

Описание: Создавайте программы для Apple Watch на языке программирования Swift 2!

В этом году на WWDC, Apple представила новую версию языка программирования watchOS 2, это означает огромные изменения для разработчиков Apple Watch. Теперь вы можете создавать нативные приложения, которые работают непосредственно на часах.

В этой книге вы узнаете, как сделать нативные приложения для watchOS 2 быстро и просто: через серию легких и последовательных уроков.

Для кого эта книга:
Эта книга для IOS разработчиков со средними знаниями, которые уже знакомы с основами разработки под iOS, а также языком программирования Swift 2.

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

16 окт. 2015 г.

AppCoda Beginning iOS9 Programming with Swift-Starter Package


Год выпуска: 2015
Автор: Simon Ng
Жанр: Разработка
Издательство: AppCoda Limited
Язык: Английский
Формат: PDF/ePUB/HTML
Качество: eBook (изначально компьютерное)
Количество страниц: 549

Описание: Мы часто спрашиваем, почему книги по программированию скучные?… Эта книга красиво оформлена с цветными скриншотами и иллюстрациями, которые помогут вам узнать дополненный и улучшенный язык программирования Swift 2.0 и iOS 9. Книга доступна в формате PDF/ePUB/HTML, так что вы можете прочитать её на вашем любимом устройстве.
В этой книге вы найдете много практических упражнений и проектов. Предполагается, что вы знакомы с принципами или вообще не имеете опыта программирования.
Сначала вы создадите простое приложение, а затем прототип приложения, затем будете добавлять функции в него, читая каждую главу. Во время этого процесса вы освоите язык программирования Swift 2.0 и iOS 9.

We will build a food app from scratch. Starting by creating an app prototype, we will add one or more features to the app in each chapter and you will have an app after working through the book. During the course of the app development, you will learn:

– Learn Swift 2 Basics Using Playgrounds
– Design UI using Stack Views
– New features of Xcode 7 like Storyboard References
– Auto layout and Size Classes
– Table views, Tab Bar and Navigation Controllers
– Table Cell Customization and Self Sizing Cells
– Applying Blur Effect using UIVisualEffect
– UIView animations and Image Manipulation
– Working with maps
– Accessing Photo Library and Camera
– Using UIWebView and SFSafariViewController to present web content
– Search bar integration
– Saving data using Core Data
– Creating tutorial screens using UIPageViewController
– Working with CloudKit
– Building a social sharing for Facebook and Twitter
– Localizing Your App into different languages
– Arranging beta test using TestFlight
– Submitting your app to App Store
To get a better idea of what’s included in the book, enter your email below and click Get Sample Chapter. We will then send you a sample book with 100-page of content.

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

Raywenderlich The iOS Apprentice (Fourth Edition): Beginning iOS Development with Swift 2


Год выпуска: 2015
Автор: Matthijs Hollemans
Жанр: Разработка
Издательство: Raywenderlich
Язык: Английский
Серия: iOS Apprentice
ISBN: 978-1942878087
Формат: PDF
Качество: eBook (изначально компьютерное)
Количество страниц: 788

Описание: Если вы новичок в iOS программирование или Swift в целом, и научиться писать приложения кажется Вам невероятно сложным процессом – прочтите эту книгу!
Из данного курса вы узнаете:
Как написать приложение шаг за шагом с подробными иллюстрациями.,
Книга написана в веселой и доброжелательного форме!
Каждый любит игры, так что вы начнете с построения простой, но веселой игру под iPhone. Она научит вас основам iPhone программирования, а другие уроки будут опираться на то, что вы узнаете в этом уроке.
Каждый урок в этой книге описывает новое приложение во всех деталях, и вместе они охватывают все, что вам нужно знать, чтобы начать программировать свои собственные приложения. К концу серии вы будете достаточно опытны, чтобы превратить ваши идеи в реальные приложения, которые вы можете продать в App Store!

Доп. информация: В раздаче полный курс:
iOS Apprentice Tutorial 1: Getting Started
iOS Apprentice Tutorial 2: Checklists
iOS Apprentice Tutorial 3: MyLocations
iOS Apprentice Tutorial 4: StoreSearch

Completely up to date for iOS 9, Xcode 7, and Swift 2.0.
Learn iPhone and iPad Programming via Tutorials!
If you’re new to iOS and Swift, or to programming in general, learning how to write an app can seem incredibly overwhelming.
That’s why you need a book that:
Shows you how to write an app step-by-step
Has tons of illustrations and screenshots to make everything clear
Is written in a fun and easygoing manner!
In this book, you will learn how to make your own iPhone and iPad apps, through a series of four epic-length hands-on tutorials.
These hands-on tutorials describe in full detail how to build a new app from scratch. Four tutorials, four apps. Each new app will be a little more advanced than the one before, and together they cover everything you need to know to make your own apps.
By the end of the series you’ll be experienced enough to turn your ideas into real apps that you can sell on the App Store.
Tutorial 1: Bull’s Eye. In the first tutorial in the book, you’ll start off by building a simple but fun game to learn the basics of iPhone programming. In the process, you’ll get familiar with Xcode, Interface Builder, and Swift in an easygoing manner.
Tutorial 2: Checklists. In the second tutorial in the series, you’ll create your own to-do list app. In the process, you’ll learn about the fundamental design patterns that all iOS apps use and about table views, navigation controllers and delegates. Now you’re making apps for real!
Tutorial 3: MyLocations. In the third tutorial, you’ll develop a location-aware app that lets you keep a list of spots that you find interesting. In the process, you’ll learn about Core Location, Core Data, Map Kit, and much more!
Tutorial 4: StoreSearch. Mobile apps often need to talk to web services and that’s what you’ll do in this final tutorial of the book. You’ll make a stylish app for iPhone and iPad that lets you search for products on the iTunes store using HTTP requests and JSON.
It is my sincere belief that this series can turn you from a complete newbie into an accomplished iOS developer, but you do have to put in the time and effort. By writing this book I’ve done my part, now it’s up to you…

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

15 окт. 2015 г.

Raywenderlich iOS Animations by Tutorials Second Edition: iOS 9 & Swift 2 Edition


Год выпуска: 2015
Автор: Marin Todorov
Жанр: Разработка
Издательство: Raywenderlich
Язык: Английский
Серия: Tutorials
ISBN: 978-1942878094
Формат: PDF
Качество: eBook (изначально компьютерное)
Количество страниц: 370

Описание: Программируйте приложения на Swift под iOS с восхитительной анимацией! Создание анимации является одним из самых приятных направлений развития iOS. Создавать анимацию весело, она вдохнула жизнь в пользовательский интерфейс iOS, также анимация делает ваше приложение красочным и приводит в восторг конечного пользователя. В этой книге, вы узнаете о применении анимации в Swift на iOS, от начального уровня до продвинутого через серию практических уроков.

Обновлено до iOS9, Xcode 7 и Swift 2.

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

8 сент. 2015 г.

Swift Recipes: Problem-Solution Approach

Название: Swift Recipes: Problem-Solution Approach
Aвтор: Mike Rogers
Издательство: Apress
Год выпуска: 2015
ISBN: 1484204190
Формат: PDF/EPUB/AWZ3
Размер: 3.59 MB(PDF), 1.22 MB(EPUB), 1.72 MB(AWZ3)
Количество страниц: 344
Язык: Английский

Swift Recipes provides a problem solution approach for dealing with key aspects of the Swift programming language (covering version 1.2), ensuring you have the indispensable reference you need to successfully execute common programming tasks. You'll learn how to use the unique features of the Swift programming language as well as its use with Cocoa and Cocoa touch frameworks and libraries. Solutions are available for a range of problems, including application development with Xcode; working with strings, numbers, and object collections; dealing with threads, multi-core processing, and asynchronous processing; and building applications that take advantage of dates and timers and memory management. This book is an essential core reference for every Swift programmer and offers solutions in a concise and easy-to-follow manner. T. Michael Rogers has developed iOS applications for Fortune 100 brands and startups, and has trained new and experienced iOS developers via the iOS Boot Camp in New York City, online courses, and in private settings. He brings his expertise to offer you the ability to use and exploit Swift to get the most out of all your projects for your app creations, whether you use iOS or Mac OS X.

16 авг. 2015 г.

Make Apple Watch Apps in Swift. Get into the App store

Год выпуска: 2015
Производитель: Udemy
Сайт производителя: udemy.com
Автор: Andrew Seeley
Продолжительность: 1:26
Тип раздаваемого материала: Видеоклипы
Язык: Английский

Описание: Do you want to have your App ready for the Apple Watch Launch?
Do you have no idea where to start?
Hi I am Andrew. 3 years ago I was in the same position as you and took an online course to learn to make iOS Apps.
Begin here to start making your first Apple Watch App. Current price is $49 USD - this will go up as more content is added to the course which has already been planned!
From a novice to a seasoned developer this course will give you access to earn cash in the new Apple Watch store. Learn before launch and be one of the first in the App Store.
This course will take you through developing several Apps for the Apple Watch. Over time more Apps and content will be added covering all aspects of the Apple Watch. All this future content is free for current students.







12 авг. 2015 г.

Learning Swift Programming

Год: 2015
Автор: Jacob Schatz
Жанр: Программирование
Издательство: Addison-Wesley Professional
ISBN: 978-0133950403
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook) (converted)
Интерактивное оглавление: Да
Количество страниц: 300

Описание: Get started fast with Swift programming for iOS and OS X
Learning Swift Programming is a fast-paced, hands-on introduction to writing production-quality iOS and OS X apps with Apple’s new programming language. Written for developers with previous experience in any other modern language, this book explains Swift simply and clearly, using relevant examples that solve realistic problems.

Author Jacob Schatz’s popular Skip Wilson video tutorials on YouTube have already helped thousands of Apple developers get started with Swift. Now, he helps you take full advantage of Swift’s advanced design, remarkable performance, and streamlined development techniques.
Step-by-step, you’ll move from basic syntax through advanced features such as closures and generics–discovering helpful tips and tricks along the way. After you’ve mastered Swift’s building blocks and learned about its key innovations, a full section of case studies walks you through building complete apps from scratch.

- Compare Swift with Objective-C, JavaScript, Python, Ruby, and C
- Collect data with arrays and dictionaries, and store it with variables and constants
- Group commonly-used code into functions for easy reuse
- Structure your code with enums, structs, and classes
- Use generics to get more done with less code
- Write closures to share small blocks of functionality
- Use optionals to write more robust, crash-resistant, and cleaner code
- Integrate existing Objective-C code into new Swift apps
- Program on the bit and byte level with advanced operators
- Implement efficient design patterns with protocols and delegates
- Create animated 2D games with SpriteKit, and 3D games with SceneKit

5 авг. 2015 г.

iOS 8 Programming Fundamentals with Swift Swift, Xcode, and Cocoa Basics


By: Matt NeuburgPublisher: O'Reilly MediaFormats: Ebook (pdf)
Ebook: March 2015 Pages: 582

Move into iOS development by getting a firm grasp of its fundamentals, including the Xcode IDE, the Cocoa Touch framework, and Swift—Apple’s new programming language. With this thoroughly updated guide, you’ll learn Swift’s object-oriented concepts, understand how to use Apple’s development tools, and discover how Cocoa provides the underlying functionality iOS apps need to have.

- Explore Swift’s object-oriented concepts: variables and functions, scopes and namespaces, object types and instances
- Become familiar with built-in Swift types such as numbers, strings, ranges, tuples, Optionals, arrays, and dictionaries
- Learn how to declare, instantiate, and customize Swift object types—enums, structs, and classes
- Discover powerful Swift features such as protocols and generics
- Tour the lifecycle of an Xcode project from inception to App Store
- Create app interfaces with nibs and the nib editor, Interface Builder
- Understand Cocoa’s event-driven model and its major design patterns and features
- Find out how Swift communicates with Cocoa’s C and Objective-C APIs

Once you master the fundamentals, you’ll be ready to tackle the details of iOS app development with author Matt Neuburg’s companion guide, Programming iOS 8

4 авг. 2015 г.

Анимация placeholder`a в Textfield / Textfield placeholder animation (UIFloatLabelTextField)


            In 2013, Matt D. Smith unveiled the Float Label user interface design pattern. In short, it retains a text field's placeholder above said text field as a floating label. This label is brightly colored when the field is active, and dimly colored when a user has finished editing that field.

1. - На storyboard добавляем и кастомизируем на свой вкус UITextField

2. - Добавляем в проект класс UIFloatLabelTextField

3. - Помечаем наши UITextField и в Identity Inspector прописываем им использовать кастомный класс вместо стандартного

4. - Делаем связку наших UITextField с кодом, задаем плейсхолдерам цвет и юзаем в удовольствие.


Download from Github / Загрузить с Github

17 июл. 2015 г.

9 июл. 2015 г.

24 мая 2015 г.

UITextField анимация / UITextField animation

Каждому из нас очень часто приходится (например в окне ввода логина / пароля) сдвигать поля ввода чтобы клавиатура не перекрывала их и пользователь видел то что он вводит. Для сдвига с места обычно достаточно простой анимации, но мы как всегда - сделаем это красиво ;)

Представим что у нас на вьюхе есть три UITextField.  Создадим массив и добавим эти UITextField в него. UITextField уже размещены в нужных нам местах. Теперь при тапе на один из них (любой) появится клавиатура которая естественно перекроет UITextField (во многих ситуациях именно так и есть, особенно на iPad при Landscape ориентации устройства. Сдвигаем:

CGAffineTransform textFieldTranslationTransform;
textFieldTranslationTransform = CGAffineTransformMakeTranslation(0, -165);

Важно помнить, что место с которого будет передвигаться UITextField - центр равен 0. Когда элементы станут на новое место, центр каждого элемента станет опять 0. Чтобы опять поставить на место, вместо "-165" ставим "165". Т.е. цифры говорят о том, что мы передвинули не В координату, а НА определенное количество пунктов.

[_textFieldsArray enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
            
            UITextField *tField = (UITextField *)obj;
            
            [UIView animateWithDuration:0.9
                                  delay:0.05 * (double)idx
                 usingSpringWithDamping:0.5
                  initialSpringVelocity:0
                                options:UIViewAnimationOptionCurveLinear
                             animations:^{                     
                                 tField.center = CGPointApplyAffineTransform(tField.center,                                                                           textFieldTranslationTransform);
                             }
                             completion:nil];
        }];

7 мая 2015 г.

UIAlertView с блоком (без делегата) / UIAlertView with block (without delegate) iOS 7

Очень часто не хочется использовать UIAlertView - делегат для идентификации тапнутой пользователем кнопки, особенно если у Вас в контроллере UIAlertView несколько, то приходится присваивать даже tag для UIAlertView. Нашел на просторах UIAlertView с блоком. Очень упростила жизнь. Хотя во многих случаях тоже есть необходимость использовать обычный UIAlertView. Данный Tips&Tricks предназначен в основном для iOS 7, т.к. в iOS 8 уже есть UIAlertViewController (если мне не изменяет память, теперь присутствует тот же блок).

UIBAlertView *timesheetsSubmited = [[UIBAlertView alloc] initWithTitle:@"Title"
message:@"message"
cancelButtonTitle:@"cancel"
otherButtonTitles:@"ok", nil];

[timesheetsSubmited showWithDismissHandler:^(NSInteger selectedIndex,
                                             NSString *selectedTitle,
                                             BOOL didCancel) {
    if (selectedIndex == 1) {
        
        //code
    }
}];

5 мая 2015 г.

UINavigationBar анимация сокрытия-показа / UINavigationBar hide-show animation

Иногда необходимо немного больше места на экране для отображения более детального и большего количества информации. Обычно при этом прячут UINavigationBar. Почему бы это не сделать при помощи анимации:





- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [self.navigationController.navigationBar lt_reset];
}

#pragma mark - UINavigationBar hide/show animation methods

- (void)scrollViewDidScroll:(UIScrollView *)scrollView
{
    CGFloat offsetY = scrollView.contentOffset.y;
    if (offsetY > 0) {
        if (offsetY >= 44) {
            [self setNavigationBarTransformProgress:1];
        } else {
            [self setNavigationBarTransformProgress:(offsetY / 44)];
        }
    } else {
        [self setNavigationBarTransformProgress:0];
        self.navigationController.navigationBar.backIndicatorImage = [UIImage new];
    }
}

- (void)setNavigationBarTransformProgress:(CGFloat)progress
{
    [self.navigationController.navigationBar lt_setTranslationY:(-44 * progress)];
    [self.navigationController.navigationBar lt_setContentAlpha:(1-progress)];
}

3 мая 2015 г.

Оптимизация производительности приложений для iOS

Книга демонстрирует, как совершенствовать, увеличивать и оптимизировать производительность приложений для операционной системы iOS. Вы быстро научитесь создавать быстрые и отзывчивые приложения, пригодные для распространения на коммерческой основе. Эта книга охватывает множество общих и вместе с тем сложных проблем, возникающих при оптимизации производительности приложений для iPhone и iPad, и подробно описывает, как эффективно их решать. Она содержит массу практических знаний, приемов, советов и рекомендаций, которые помогут вам преуспеть в конкурентном мире разработки приложений для iOS.

Издание предназначено для программистов разной квалификации, разрабатывающих мобильные приложения под iOS.

28 апр. 2015 г.

24 апр. 2015 г.

Penn J., Smith J. Build iOS Games with Sprite Kit: Unleash Your Imagination in Two Dimensions

For beginning iOS developers who want to write games and interactive applications.

Take your game ideas from paper to pixels using Sprite Kit, Apple's 2D game development engine. Build two exciting games using Sprite Kit and learn real-world, workshop-tested insights about game design, including cognitive complexity, paper prototyping, and levels of fun.

You'll learn how to implement sophisticated game features such as obstacles and weapons, power-ups and variable difficulty, physics, sound, special effects, and both single- and two-finger control. In no time, you'll be building your own thrilling iOS games.

Deitel P., Deitel H. Swift for Programmers

The Swift™ programming language was arguably the most significant announcement at Apple’s 2014 Worldwide Developers Conference. Although apps can still be developed in Objective-C®, Apple says that Swift is its applications programming and systems programming language of the future.

Swift is a contemporary language with simpler syntax than Objective-C. Because Swift is new, its designers were able to include popular programming language features from languages such as Objective-C, Java™, C#, Ruby, Python® and many others. These features include automatic reference counting (ARC), type inference, optionals, String interpolation, tuples, closures (lambdas), extensions, generics, operator overloading, functions with multiple return values, switch statement enhancements and more. We’ve been able to develop apps more quickly in Swift than with Objective-C and the code is shorter, clearer and runs faster on today’s multi-core architectures.
Swift also eliminates the possibility of many errors common in other languages, making your code more robust and secure. Some of these error-prevention features include no implicit conversions, ARC, no pointers, required braces around every control statement’s body, assignment operators that do not return values, requiring initialization of all variables and constants before they’re used, array bounds checking, automatic checking for overflow of integer calculations, and more. You can combine Swift and Objective-C in the same app to enhance existing Objective-C apps without having to rewrite all the code. Your apps will easily be able to interact with the Cocoa®/Cocoa Touch® frameworks, which are largely written in Objective-C.

You can also use the new Xcode playgrounds with Swift. A playground is an Xcode window in which you can enter Swift code that compiles and executes as you type it. This allows you to see and hear your code’s results as you write it, quickly find and fix errors, and conveniently experiment with features of Swift and the Cocoa/Cocoa Touch frameworks.
Practical, Example-Rich Coverage of:
Classes, Objects, Methods, Properties
Initializers, Deinitializers, Bridging
Tuples, Array and Dictionary Collections
Structures, Enumerations, Closures, ARC
Inheritance, Polymorphism, Protocols
Type Methods, Type Properties
Generics; Strings and Characters
Operator Overloading, Operator Functions, Custom Operators, Subscripts
Access Control; Type Casting and Checking
Nested Types, Nested Methods
Optionals, Optional Chaining, Extensions
Xcode, Playgrounds, Intro to Cocoa Touch® with a Fully Coded iOS® 8 Tip Calculator App
Overflow Operators, Attributes, Patterns

17 апр. 2015 г.