iphone
How to customize UILabel clickable
The most simple way is to just add a gesture recognizer to the actual view (be it a UILabel or some custom view of your own). In order for the gesture recognizer to work, the view must be set userInteractionEnabled. Here’s an example, assuming that your label view (or whatever it is) is called labelView: … Read more
Altering the background color of cell.accessoryView and cell.editingAccessoryView
Upon reading the documentation (a novel idea), I found the article, “A Closer Look at Table-View Cells”. It helped me understand the composition of the cells, and I found my answer… cells look like this… Since the cell.accessoryView is a sister view to cell.contentView I had to ask the cell.contentView for its superview, and then … Read more
iPhone:Find the current timezone offset in HOURS
There is a very nice NSTimeZone object which will give you the timezone offset from GMT in seconds: float timezoneoffset = ([[NSTimeZone systemTimeZone] secondsFromGMT] / 3600.0); For more see blog post http://blog.indieiphonedev.com/2011/01/09/getting-the-timezone-on-the-device/