I wrote this custom cell that ultimately was axed because it didn't fit into the UI that was later revised. I thought it was a shame to waste it so here it is in the full. It works by allowing you to define how buttons should appear in a cell, each is given an equal size and spacing is worked o…
#ui
22 posts with this tag
"How do you move from one tab to another programmatically?" This is a question that always seems to crop up and it turns out the answer to that question is a single line of code: self.tabBarController.selectedIndex = 6; Changing the selectedIndex value on a UITabBarController will cause…
On a project I had to come up with a way of dynamically adjusting a label's frame to match the content that was inside it. I first thought of using a UITextView instead of a label as my data could very well be multi-lined but decided against it when I discovered this approach: .h @interface U…
This took me an age to track down. How do you get the value out of the UIDatePicker that the user has selected. Having used UIPickerView a lot, I thought that UIDatePicker object would have been an extension of UIPickerView and with the same methods, however this turned out not to be the case and…