Tutorial: Networking and Bonjour on iPhone

By

On May 20, 2009

Guest author Peter Bakhyryev (email) is co-founder of ByteClub, a software development company that provides online multiplayer technologies and services to iPhone application developers. He is located in Brooklyn, New York. In this tutorial, we are going to explore a simple chat application for the iPhone. It allows you to host your own chat room […]

id<Protocol>, Retain/Release and Protocol Inheritance

By

On May 19, 2009

Paul Cantrell’s recent post showed that you can use Objective-C protocols to constrain the behavior of id objects. When declaring an instance variable or parameter as id<Protocol>, the compiler’s type checker will warn when sending message not found in Protocol. For this reason, protocols are pretty handy. But in practice, a problem arises. Let’s say […]

iPhone Circle Gesture Detection

By

On May 14, 2009

Guest author Jeff LaMarche (Profile) is the co-author of the superb Beginning iPhone Development book. Jeff, and his co-author, Dave Mark (Profile), were previously featured on the Mobile Orchard podcast. In Beginning iPhone Development, we have a chapter on gestures. While I think we covered the topic fairly well, I would have liked to have […]

The id Type and Protocols

By

On May 12, 2009

Editor’s note: I recently bumped into a bit of Objective-C syntax that was unfamiliar to me. The code was in this form: id<SomeProtocol> variableName = [someObject someMessage] I’d never seen a protocol paired with an id type. I asked Paul Cantrell about it and he prepared this:

OCUnit: Integrated Unit Testing In Xcode

By

On May 4, 2009

Guest author Kailoa Kadano (Profile) is a full-time iPhone developer and entrepreneur. Kailoa’s experience ranges from embedded systems to python web development. He currently resides near Santa Cruz, California. When the original iPhone SDK was released it lacked unit testing capabilities. Third-party solutions were adapted or created to fill the gap. However, in the interim, […]

Three Keyboard-Tweak Tutorials

By

On April 23, 2009

For the longest time, I had this lonely single item on customizing the on-screen keyboard on the iPhone sitting in my potential story ideas file. A week or so ago I saw that Matt Gallagher posted a clever keyboard related trick. And then today, Luzian Scherrer sent me a link to a how-to he had […]

Tutorial: Code Sharing Via Static Libraries And Cross-Project References

By

On April 1, 2009

Guest author Clint Harris (Profile) is an independent software consultant with experience ranging from enterprise web app work to custom iPhone app development. He currently lives in Brooklyn, New York. Finding an elegant way to reuse and share code (i.e., libraries) across separate iPhone applications can be a bit tricky, especially considering Apple’s restrictions on […]

Tutorial: JSON Over HTTP On The iPhone

By

On March 19, 2009

This tutorial provides a step-by-step howto for consuming JSON web services from an iPhone app. When you’ve finished the tutorial you’ll have created a simple, back-of-a-fortune-cookie inspired, “Lucky Numbers” app with a solitary label whose content will be updated to show a list of lucky numbers fetched from a JSON-over-HTTP web service. Source/Github The code […]

Finding iPhone Memory Leaks: A "Leaks" Tool Tutorial

By

On February 12, 2009

Guest author Owen Goss (Profile) is the creator of the color-matching game Dapple and founder of Streaming Colour Studios, an independent video games studio based out of Toronto, Ontario, Canada. I’ve been using Instruments a lot lately as I approach the end of my game development cycle. I’ve found it especially useful for tracking down […]

Hello There: A CoreLocation Tutorial

By

On February 5, 2009

There are plenty of different places to get a mobile application designed. The problem is that they’re quite expensive. You might be able to figure out how to create your own, but it will probably look very basic. Instead, a good mobile application development software can make it even easier, so that you can build […]