0x161

If you’re using UITableView section headers for something more complicated than just displaying an alphabetical index of your table, then you may not like it’s default floating behavior.
The section header view will always stick to the top of the table overlapping that portion of the section that remains visible.
Read More…
0x12A
The way an original Contacts app on a iPhone displays two buttons may be a private API matter, but there is a littke trick to make your UITableViewCell subclass look the same way.
The problem is in a default round-cornered look of grouped UITableView—everything we put in our cell will be embedded in a white rectangle, so we need to found a way to mask it with a default lined-blue background.
All we need to do is embed all our UITableViewCell contents in a single custom view that will fill entire cell size, then assign it’s background color to a patter of vertical blue lines and inset it’s frame by 3 pixels outwards so it will cover the default white background of our UITableViewCell.
Read More…
0xC5
If you ever wanted to give any of your UI controls some strange color tint, there are two major ways to do that:

- The first one that comes to mind would be redrawing all graphics in Photoshop and then doing all custom drawing in drawRect: method of your view subclass. But that way you will have to recreate all you graphic files if you decide to change a color of your control.
- The second way, that we will discuss today, is not that straightforward than the first one but requires no images and probably will work with any type of controls. The only limitation it has—it will work only Mac OS X 10.4 Tiger and later system versions as it uses CoreImage filters to do all the coloring.
Read More…
0x56
For those who wonder how Dashboard Ignition activates the Dashboard—here is a little bit of explanatory involving some hacking and disassembling. At the same time we will also find a way to programmatically control Exposé and Spaces in your code.
So, I hope you’re friends with Terminal application because today we will use some of the basic command line tools that every Mac developer should be familiar with. They are called otool, nm and strings…
Read More…