$aleOrigin

Archive for October, 2008

Please consider subscribing to Mobile Developer Tips
RSS feed or following us on Twitter


Date Formatter Examples – Take 1: NSDateFormatter

Sometimes all you’re really looking for is a basic chunk of code to get something done. For example, I was working on an application yesterday and needed to display the current date in text format: October 29, 2008. A simple concept for sure, however, with the many nuances of date formatters, it takes some time [...]

Cocoa, Date and Time

How to Prevent iPhone from Sleeping

The automatic sleep timer is one of the ways the iPhone saves power. If the screen isn’t touched for a certain amount of time, it dims the screen and eventually turns it off. Although you should leave the timer on, there are times when this is not what you want (games are a good example). [...]

Cocoa

How to Get Width/Size/Length of UIString in a Specific Font

If you’ve ever been frustrated trying to find a way to compute the height of a string that wraps you will know my pain. Recently, I discovered that UIKit has made some addition to the NSString class that adds pure magic to the string type. If you lookup the NSString class in the documentation then [...]

Cocoa

iPhone Frameworks from the Omni Group

The Omni Group is the company behind some amazing Mac software. For example, OmniGraffle is a great tool for creating wireframes and applications flows (see this post for related info).

Framework/Library

Xcode FIXME and TODO

In a previous post I introduced how to use #pragma mark to help navigate source files within Xcode. There are several additional tags that can be used within a source file to call out specific code or content.

Xcode

C++ on iPhone: Part 2, Exceptions

In part 2 of this C++ on iPhone series I’ll be exploring C++ exception handling support, and as a bonus I’ll touch on use of standard C++ lib console output stream, as well as showing a way to call C++ code from Objective C. As a reminder, exception handling is normally one of the weak [...]

C++, Objective-C

Launching Other Apps within an iPhone Application

In an earlier post I talked about how to launch the browser from within an iPhone application using the UIApplication:openURL: method. It is also possible to use this same technique to launch other applications on the iPhone that are very useful. Examples of some of the key applications that you can launch via URL are: [...]

Cocoa

Apple Releases New iPhone Developer Forum

For those of you that haven’t noticed yet, Apple has released a nice improvement over its original forum for developers. Unlike the old customer support forums, this new forum is dedicated to exclusively iPhone Development topics. So far I’ve found it very useful.

Announcements

C++ on iPhone: Part 1a

Upon completing a followup article to part 1 in this series on C++ for the iPhone, I realized that the article was not really very iPhone specific, and was more of a generic C++ article. That being the case, I’ve rewritten the article and posted on my site here. The article pertains to some interesting [...]

C++
All Content Copyright © 2008-2012 • Mobile Developer Tips, All Rights Reserved.
iPhone and iPad are registered trademarks of Apple, Inc.
iOS is a registered trademark of Cisco Technology, Inc.