So here's another one for the eagle-eyed among you. This is a little issue I first ran into a little while ago and it was surprising when I discovered the reason behind it.
What's wrong with this code:
(more...)
Documenting a peculiarity with labels in switch statements that isn't immediately obvious.
I just encountered a hairy yet rather funny bug in Feathers that I thought I'd share with you. It was one of those that leaves you scratching your head even though it's just staring you in the face. (Granted, when you have a large code-base and multiple threads, locating the area of the code where the issue is staring you in the face can be a chore in and of itself.) So, without further ado…
What's wrong with his code?
(more...)
Forget an itsy-bitsy nil and the whole sky comes crashing down on your head.
If you want to transition between two views, here's a neat trick: take a screenshot of the screen you're transitioning from and do the transition between that bitmap and a bitmap representation of the screen you're transitioning to. That way, instead of animating between two possibly complex views with lots of subviews, etc., you are simply animating between two bitmaps. This, of course, will be far less of a strain on the CPU and thus perform better. This little nugget isn't just for iPhone development either. I first started using it back in the day while making Flash apps.
Taking screenshots programmatically
(more...)
How to take a screenshot of your app (or just the keyboard) via code and how to get a reference to the keyboard on iOS 4.x.
I am going to be teaching my 3-Day
Introduction to iOS Development workshop,
October 27-29, 2010 October 20-22, 2010, at our beautiful Lighthouse Arts venue in central Brighton (UK).
This intensive course will give you a solid foundation in developing with the iOS SDK (for iPhone, iPad, and iPod Touch), Xcode (both 3 & and the upcoming 4), and Objective-C. To see a more detailed outline of the course and get all the juicy details, please see the course's web-site.
(more...)
Learn to develop for iOS in this intensive 3-Day workshop in picturesque Brighton.
Looks like somehow Apple has allowed a rather broken Xcode 3.2.4 to be released. If your projects use the LLVM compiler, you may find yourself with lots of errors when you try to compile for the simulator.
The issue has been widely reported and there is a workaround that involves adding
(more...)
Xcode 3.2.4 with the iOS 4.1 SDK breaks existing projects that use LLVM when compiling for the simulator.