Category Archives: iPhone

It doesn’t “Just work” at all!

Apple’s motto “It just works” certainly isn’t applying to the latest release of Xcode, Xcode 4. The iOS 4.3 SDK now comes with Xcode 4, so I thought it was time to upgrade. The issues I am having or have … Continue reading

Posted in Apple, Development, iPhone | 4 Comments

internal compiler error: tree check: expected tree that contains ‘decl with visibility’ structure, have ‘const_decl’

With the release of iOS 4.2 SDK and Xcode 3.2.5 my project started failing with this error. I tracked the problem down to use of implicitly testing an Objective-C string literal for null/nil. In my case it was buried inside … Continue reading

Posted in Development, iPhone | 1 Comment

Another retain gotcha!

I created a UI object based on UIView that updates itself using a timer. So within the object initWithRect I create an NSTimer object which I retain. -(id) initWithFrame:(CGRect)rect { … ticker = [[NSTimer scheduledTimerWithTimeInterval:0.25 target:self selector:@selector(tock) userInfo:nil repeats:YES] retain]; … Continue reading

Posted in Development, iPhone | 1 Comment

Rendering an iPhone UITabBar icon on BlackBerry

On the iPhone the correct way to make a UITabBar icon is to make a 32×32 image with just an Alpha channel. The iPhone will render the active icon using the “select” colour (blue) plus the alpha channel from the … Continue reading

Posted in BlackBerry, Development, iPhone | Leave a comment

iPhone TV Out Tutorial

This article presents some code that will add TV Out functionality to your application. For use only in non-distribution builds. Continue reading

Posted in Development, iPhone | Tagged , | Leave a comment

To retain or not to retain, a retain gotcha!

I came across a little gotcha today cause by a habit of using @property (nonatomic, retain) for object properties. ┬áThe problem in this case was a UITableView controller that was refusing to be deallocated because its reference count would never … Continue reading

Posted in Development, iPhone | Leave a comment