iPhone: how to create a transparent table header
A couple of weeks ago I was wondering how you created a transparent header for a table view on the iPhone like the one that’s in the built in contacts app detail view. Here’s a video of the contacts app so that you can see what I’m trying to achieve:
Initially, I thought that the way to do this was to add an additional section to the table and add a custom cell to it. That kind of works, but is quite hard work. I think I’ve found a better and simpler way – by using the tableView:viewForHeaderInSection method on UITableViewDelegate.
To start with, we need to create a basic view-based Cocoa Touch app in XCode. I’ve called mine ContactStylee. I’ve zipped up the completed XCode project for you so that you can follow along.
There will be no “iPhone killer”
All you ever hear from the mobile phone manufacturers and pundits these days is speculation about what phone will “kill” the iPhone. I think this is evidence that they are thinking in a way that will be guarantee that they will be also-rans for as long as Apple make a mobile telephony device (and I think they’ll be doing that for a *long* time).
It shows that they’re asking the wrong question. The flurry of new touchscreen devices – the BlackBerry Storm, the LG Incite (tagline: “Windows Mobile at its most intuitive”, which is kind of like saying “shit at its least smelly”) and so on – show that the boards of mobile phone companies have, in effect, told their R&D teams to create an iPhone clone.
And there’s the problem. You can’t clone the iPhone, because Apple have done such an amazing job on the design, usability and functionality that, if you’re in the market for a touchscreen phone, you’re probably going to automatically choose an iPhone. And that’s before you’ve had a play with your friend’s iPhone. I’ve never owned any other device that has made my friends *laugh* when they see how awesome it is.
There are still a few things that might hold you back: years of hearing that Macs aren’t as good as PCs (just pop into your local Apple Store if you want to find out how wrong-headed that is), the price of the monthly contract, and maybe not wanting to be on O2 due to coverage issues in your area (or AT&T or whoever the carrier is in your country). And you may just not want to be a sheep. But once the exclusive deals expire, surely the iPhone will be available on all networks and most of those concerns will go away.
But there are still a huge number of people who are not in the market for an iPhone at all. People who don’t want such a large phone, who don’t want email, or an iPod on their phone, or a mobile gaming device, who probably don’t even need a camera, and who will probably never download apps. Although the iPhone has been a massive success – when very few predicted it would be – it still only has a fraction of the market for handsets.
I boldly predict that the next big-selling phone will be designed by people who look at the iPhone and ask: “who isn’t going to want one of these?”, “why?”, and “how can we build them a phone they *do* want?” Until then, Apple will continue to eat the establish players’ lunch.
Update: fixed silly typo
NSConference
I’ve recently taken some actual concrete steps to learn the iPhone SDK and Objective-C. So far it’s been very enjoyable, with only a couple of WTF moments.
The biggest change from using Visual Studio and .NET has been that the visual tools actually seem to work without screwing with your work. I’m not pushing it very hard yet, so that will probably change. I’m still nervous that I don’t understand the underlying serialization format.
I’ve been using Bill Dudney’s Screenscasts on starting iPhone development, and his forthcoming iPhone development book, both from the Pragmatic Programmers, which have both been excellent. As a result I’ve got the basics of an iPhone app that I think could turn into something that people might actually want to install on their phones. There’s a lot of work to be done before I get to that stage, though.
In an attempt to give myself a hard deadline for learning, I also signed up for NSConference, a Mac developers conference to be held in April, organised by Scotty from the Mac Developer Network. If you’re at all interested in iPhone or Mac development it looks like the place to be. Hopefully I’ll see you there.
It’s official
I am the greatest. The iPhone said so:
And I didn’t Photoshop it, either.
iPhone development
Now this is very exciting.
I predict that the iPhone SDK will be seen as a watershed in the history of computing, as important as the the first PC. For the first time, proper mobile computing will be a reality.
I can’t wait to get started developing my first app.
O2 doubles call and text allowances for iPhone contracts
Macworld UK are reporting that O2 have doubled call and text allowances for iPhone contracts including existing ones. I’m on the £35 per month plan, which means that my free calls have tripled to 600 minutes. According to O2, all accounts will be upgraded by mid March at the latest. Excellent news.
My iPhone – Week 1
We might as well get it out of the way early on: I adore my iPhone. Today my old number ported over (although with some weird side effects) and so I should be a one portable device man from now on.
As always with Apple it’s simple touches that make all the difference. The screen is really crisp and rendering in Safari is utterly brilliant – it’s even sharper than a MacBook Pro. The zoom in and out are just superb – you can’t keep the childlike smile off your face. The automatic orientation detection is lovely too.
There are, of course, some features that I want Apple to add. Top of the list is a to-do list app. Ideally, that would be OmniFocus when the SDK is available (any day now, hopefully). I’d like to be able to remove the idiotic Stocks widget from my home-screen. Even better, I’d like to rearrange the screen in any way I choose. For top marks, the list of widgets should sync between the phone and my MacBook Pro.
Next, I’d like an RSS reader – ideally NewsFire. Again, that should sync with my Mac. At a push I might be willing to swap to NetNewsWire if it synced properly.
Then, I’d like a mobile blogging app – ideally MarsEdit, which I’m using to write this post.
Syncing generally could be better – although it works very well when you have your iPod cable available, it should also work over .Mac so that I don’t ever need to physically connect it. That would take care of Calendars, Contacts, Mail Accounts, Bookmarks and Widgets.
The last thing that’s missing is Copy & Paste, although that’s rumoured to be included in the next software update.
But these are little gripes. The iPhone is the best device I’ve ever bought. Everyone should have one.



