how to debug EXC_BAD_ACCESS on iPhone

October 31, 2009

EXC_BAD_ACCESS. Debugging this one is on par with figuring out why the wife says “not tonight, honey.” And they are equally unfortunate situations. Let’s see what we can do about EXC_BAD_ACCESS.


decoding a UTF-8 NSString

October 30, 2009

I came across this issue when I received a UTF-8 encoded stringĀ from a URL. I was expecting the UTF-8 string to be automatically decoded, but then I realized that it’s probably not trivial to identify a UTF-8 string, so NSString doesn’t automatically do this for a reason. (Unfortunately, this realization came only after I’d been […]


converting NSString to JSON string

October 29, 2009

I needed a quick way to encode an NSString to be used in a JSON object in an iPhone project. There are libraries to do this like TouchJSON, but I didn’t want to link a whole library to insert a string into a Facebook query.


provisioning profile not showing in 2.x project

October 10, 2009

I’ve recently worked on an update to MeanPhoto. The project was originally done using the iPhone SDK 2.1. I made the new distribution build with the 3.1.2 SDK without any issues, but when I uploaded the binary on iTunesConnect, I got an error saying that the app was not signed with an Apple provisioning profile. […]


making seamless repeating backgrounds using photoshop and cocos2d iPhone

May 8, 2009

I received a lot of inquiries about how the seamless repeating backgrounds were made for my Ninja Jumper iPhone game. So I figured it would be easier to share it here instead of typing a whole bunch of emails…


add mercurial version info to xcode project

April 21, 2009

I’ll describe one way of adding mercurial version information automatically to an xcode project.


hide iPhone status bar

March 9, 2009

To hide the status bar in your iPhone app, add the UIStatusBarHidden Boolean key to the Info.plist file and set it’s value to YES.


creating and drawing on a new UIImage

February 23, 2009

Someone asked me how to create a new image and draw another UIImage on it. Here’s the public answer, so everyone can benefit šŸ˜‰


free iphone app version from the same xcode project

January 27, 2009

There are more than 15,000 apps in the app store and hundreds are added daily. You need a way to show off your awesome creation to the millions of potential buyers. One of the most effective marketing tools for small fish is releasing a free version of the app. To do that, you could copy […]


custom UIImagePickerController camera view

January 12, 2009

WARNING: While there are many apps (including some of mine) that use this technique, you should know some new apps and updates to existing apps have been rejected recently (april/2009). Please read the comments. So far I don’t know of any instances where the developer successfully argued Apple’s decision if the app was rejected. With […]