12 авг. 2015 г.

Learn Swift A-Z Foundations to make iOS and OSX Apps. Video tutorial


Год выпуска: 2015
Производитель: Udemy
Сайт производителя: www.udemy.com/learn-swift-a-z-foundations/
Автор: Andrew Seeley
Продолжительность: 3 hours
Тип раздаваемого материала: Видеоурок
Язык: Английский

Описание: Узнать все аспекты Swift на создание прочной основы для IOS и OSX Mac-приложений.

Learn all aspects of Swift to build a solid foundation to make iOS and OSX Mac Apps.
This course will teach you about Swift - Apple's newest programming language. Swift makes it alot easier to develop and understand App development so anyone can pick it up easily!
This course will focus on the fundamentals of Swift - to develop iOS/Mac apps you need a good foundation understanding of Swift first. After taking this course you will have a good understanding of Swift and will be ready to learn how to make iOS/Mac Apps!
What are you waiting for, every second more and more developers are earning money from their apps, why not you!

Формат видео: MP4
Видео: AVC, 960x540, 16:9, 30.000 fps, ~ 87 Kbps
Аудио: AAC, 48.0 KHz, ~ 96.0 Kbps, 2 channels

Section 1: Introduction
Section 2: Variables & Constants
Section 4: Working with Data Types & Operations
Section 5: Control Flow - If Statements
Section 6: Control Flow - Loops
Section 7: Arrays & Dictonary's
Section 8: Enumerations
Section 9: Functions
Section 10: It's a wrap!



Make Mario Game in iOS 8 Swift. Video tutorial


Год выпуска: 2015
Производитель: Skillfeed
Сайт производителя: skillfeed.com
Автор: Muhammad Haroon
Продолжительность: 2:59
Тип раздаваемого материала: Видеоурок
Язык: Английский

Описание: In this course, we'll learn how to make a mario like or any other platformer game. The player will be able to move left, right or jump in both directions. It will have the fire capability and will be able to interact with all the objects in the game like ground, ground gaps, stairs, bricks, coins, enemies.

Формат видео: MP4/FLV
Видео: MPEG-4/Flash, 960x540, 16:9, 30fps, 267(500)kbps
Аудио: AAC, 44.1kHz, 128kbps, stereo




5 авг. 2015 г.

Beginning Swift Games Development for iOS


Publisher: Apress
Author: James Goodwill, Wesley Matlock
Isbn: 978-1-4842-0401-6, 978-1-4842-0400-9, 1484204018
Year: 2015
Pages: 259
Language: English
File size: 6.2 MB
File format: PDF

Game apps are one of the most popular categories in the Apple iTunes App Store. Well, the introduction of the new Swift programming language will make game development even more appealing and easier to existing and future iOS app developers. In response, James Goodwill, Wesley Matlock and Apress introduce you to this book, Beginning Swift Games Development for iOS. In this book, you’ll learn the fundamental elements of the new Swift language as applied to game development for iOS.
In part 1, you’ll start with a basic 2D game idea and build the game throughout the book introducing each SpriteKit topic as we add new functionality to the game. By the end of the book, you’ll have experience with all the important SpriteKit topics and have a fully functional game as a result. In part 2 of this book, you’ll learn 3D game development using Apple’s SceneKit framework and the Swift programming language. And, you’ll follow the same pattern we used for part 1.
After reading and using this book, you’ll have the skills and the code to build your first 2D and then 3D game app that you can run on any iOS enabled device and perhaps sell in the Apple iTunes App Store.

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 г.

23 июн. 2015 г.

iOS Games by Tutorials, 1st Edition


Год выпуска: 2013
Автор: Mike Berg, Ray Wenderlich, Tom Bradley
Жанр: Разработка
Издательство: Raywenderlich
Язык: Английский
Формат: PDF
Качество: eBook (изначально компьютерное)
Количество страниц: 831
Описание: Научитесь делать iOS игры!
Узнайте как сделать свои собственные игры для iOS с помощью нового фреймворка - Sprite Kit.
В этой книге, вы познакомитесь примерах мини игр, как воплотить ваши идеи в реальность!
В книге охватывается как базовый так и продвинутый уровень знаний.

(With source code!)

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
    }
}];