Search
Rich's Mad Rants
Powered by Squarespace
Wednesday
Nov202013

Sprite Kit Demo Code

I finally had a chance to clean up the code from my Sprite Kit presentation at MacTech Conf 2013.

The code can be found here:

Sorry for the delay.

Saturday
Nov022013

Objective-C Chapter Available Online

I've got good news, bad news and good news again.

Let's start with the good news. Creating iOS Apps: Develop and Design, Second Edition is done! The final layout wrapped up last week, and the files are on their way to the printer.

The book has been completely rewritten for iOS 7. It focuses on modern, best practices like Storyboards, ARC and Auto Layout. It was also designed with iOS 7's new UI paradigm in mind--creating clean, content-focused interfaces that emphasize animation over ornamentation. This includes a detailed exploration of many of iOS 7's new features, like custom transitions, interactive transitions, UIMotionEffects and UIKit dynamics.

The book should be released on November 25th. I'll post links as soon as it shows up on Amazon, iTunes and other online stores.

Now for the bad news. I wrote too much. We couldn't possibly fit everythign in the book. That means a few sections had to be cut, including the entire Objetive-C Chapter.

The good news is that I will make all of these sections available here for free, starting with the Objective-C Chapter.

The Objective-C Bonus Chapter is 91 pages long. It covers everything from the language's fundamental building blocks to the design patterns used in Cocoa and Cocoa Touch. It also includes all the new additions to Objective-C, like instancetype, literal syntax and subscript notation, and 64-bit support.

The file is available in both print and screen resolutions. You can download them here:

Wednesday
Sep252013

Mastering Auto-Layout Workshop

I have some good news, and I have some bad news. The bad news is, we had to cancel the iCloud MacTech workshop. I think people have either just given up on iCloud, or (hopefully) the new API is working so well that they don't need any help.

The good news is, I will now be talking about one of my other favorite (and possibly equally controversial) topics, Auto Layout.

Here are the details:

When an Apple developer is deals with a view’s size changes, they need to adjust the layout of its content to fit within its new bounds. Traditionally, we did this using autoresizing masks. These have the advantage of being easy to understand. Unfortunately, they are also limited. In all but the most basic views, we would need to supplement our autoresizing masks with custom code to programmatically layout some or all of our subviews.

Starting with OS X 10.7 Lion and iOS 6, Apple introduced Auto Layout to help us better manage changes in our user interfaces. Auto Layout promises to fill the gaps left by autoresizing masks. In theory, it should completely eliminate the need to programmatically layout our view hierarchies. Furthermore, Auto Layout lets our views adapt to internal changes -- this means our views can automtaically adjust their size in response to changes in their content.

This is especially important with the introduction of iOS 7 and likely Mavericks. Dynamic Type allows users to change the size of the fonts in all supporting applications. If we want to support Dynamic Type, we must re-layout our user interface whenever the font size changes. In addition, many user interface elements have changed size between iOS 6 and iOS 7. If we want to support both operating systems, we need to adjust our user interface appropriately. Auto Layout helps solve both of these problems.

Auto Layout is declarative, constraints-based layout engine. Instead of specifying a view’s size or location, Auto Layout lets us define complex relationships between views, giving us an incredible amount of power--but this power comes at a cost. Auto layout has a steeper learning curve than Autoresizing.

This workshop will help you get over the steepest part of that curve. Specifically, Mastering Auto Layout will cover:

  • The theory behind Auto Layout.
  • Programmatically setting Auto Layout constraints using NSLayoutConstraint.
  • Setting and modifying Auto Layout constraints in Interface Builder.
  • Debugging Auto Layout issues.
  • Best practices for using Auto Layout with iOS 7.
  • Using Auto Layout to support Dynamic Type.
  • Using Auto Layout to support both iOS 6 and iOS 7.

This is a hands-on workshop. Students will get experience adding, modifying and debugging Auto Layout constraints through a series of lab exercises. The class will be taught using iOS 7; however, most of the material will apply to OS X development as well.

You can get more information at the MacTech Conference site. If you're interested in signing up, you can also use my speakers link to get a discount.

I hope to see you there!

Thursday
Aug292013

Just a quick update...

Summer is always an awkward time for me. I get so wrapped up with the new iOS SDK, but I cannot actually write about any of it yet. Nor can I really present the new information in my classes. It's frustrating, but also exciting. There are some cool things coming.

In the meantime, I continue to work away at the second edition of my book. It's shaping up well, and has a lot of great new information about iOS 7 in it. 

I will also be running a pre-conference workshop at MacTech Conf on implementing iCloud. This is a full-day, hands on workshop. We will take a sample project and implement all three types of iCloud syncing: key-value syncing, document syncing and even Core Data syncing. We will be looking at the strenghts and weaknesses of each approach, and dig into complex topics, like conflict resolution and duplicate entries.

More importantly, I will cover all the new tools and improved APIs for iOS 7. Unfortunatley, I can't say much about them yet--except to reassure everyone. Apple is continuing to advance and improve their iCloud support--and the changes they've made will make life much easier for everyone.

There are still seats available, if you're interesting in coming. The workshop will be on November 5th, at the Manhattan Beach Marriott, Los Angeles, CA. You can find more information at the MacTech Conference web site. Please spread the word to anyone who might be interested.

Friday
Aug022013

MacTech Conference 2013

Hey all,

Just wanted to let everyone know that MacTech Conf has their Super Early Bird pricing until August 15th.

I'll  be speaking again this year. Actually I'll be speaking and running a pre-conference workshop.

I'm running the Adding iCloud Syncing to your App lab. It will be a hands-on lab, where we will implement various types of iCloud syncing: Key-Value syncing, Document syncing and even the dreaded iCloud syncing. I'm putting the new iOS 7 beta through it's paces as I work on the second edition of my book--so I should have lots of new information to share.

I'll also be doing a presentation on Sprite Kit. I feel like this is really bringing everything full circle. I wrote an article on using Cocos 2D for MacTech Magazine several years ago. That article lead to my first freelance gig. Which lead to me switching to full-time iOS development. Which lead to my book. All of which lead to me talking about 2D game engines again.

I hope to see you there.