ENTRIES TAGGED "Cocoa"

Upward Mobility: Animating the Leaves of Fall (in Australia)

It doesn't take many lines of code to make a snazzy animated background in iOS

One of nicest features of iOS development is that, frequently, you can pull off visual effects that look amazing without having to write a lot of code. It may be about to start the spring season here, but Down Under it’s heading into fall, so to honor those folks, we’ll animate some falling leaves. We’ll use a simple piece of code that will animate objects drifting down the screen.

I say drifting, because this trick only works for objects that are going to maintain a constant velocity as they descend through the space. Thus, it works well for things like leaves, pieces of paper, or other light objects that the mind will immediately accept as having reached their terminal velocity. In my case, I developed the code to handle confetti streaming down a “You’ve won” screen. Heavier or more streamlined objects require a bit more work to animate, because you need to simulate the effects of gravity and acceleration, otherwise the animation doesn’t look right.

So, to begin, we need some image assets. For this example, I’m going to use 3 leaf images I grabbed from a public clip art site, and cleverly renamed to leaf1.png, leaf2.png, and leaf3.png. I created a simple single-view storyboard project, and added a label in the center of the view. Now, all that’s left is to plop in the code:

Read more…

Comment |

Mastering iOS development

Matt Neuburg has suffered through the difficult bits of iOS development so you don't have to.

Matt Neuburg is an O’Reilly author and long-time writer for tidBITS.

We sat down recently to talk about iOS development and how best to build solid apps … the secret is take the time to learn the basics.

Key points from the full video (below) interview include:

  • All of the real power in iOS development is in C. [Discussed at the 1:26 mark]
  • Don’t use the Cocoa Framework, let it use you. [Discussed at the 2:56 mark]
  • Even though you don’t have time, understanding the underlying foundation of the OS makes you better a developer. [Discussed at the 8:07 mark]
  • Take a deep breath … Apple is actually working on improving the dev experience. [Discussed at the 10:54 mark]

You can view the entire interview in the following video.

Read more…

Comment: 1 |

Objective-C and Cocoa: The core of solid iOS apps

Jon Manning and Paris Buttfield-Addison share their insight on what's new with Objective-C and Cocoa

Jon Manning (@desplesda) and Paris Buttfield-Addison (@parisba) are co-founders of Secret Lab and authors of the forthcoming Learning Cocoa with Objective-C, 3rd Edition

Key points from the full video (below) interview include:

  • Embrace Objective-C’s verbosity [Discussed at the 0:30 mark]
  • Just getting started with Objective-C? Check out the WWDC videos and… [Discussed at the 1:45 mark]
  • Long awaited updates to Objective-C make a big impact [Discussed at the 2:27 mark]
  • When it comes time to submit your app to the App Store, think about it as Apple would [Discussed at the 3:47 mark]

You can view the entire interview in the following video.

Read more…

Comment: 1 |