On a project recently I had to develop some model classes that would be populated upon creation from a web service. A requirement was that once the model object where created they should not be altered. As I wasn't the sole coder on this project I decided to defend these objects and ensure that…
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…
It's not unusal to see the following error when attempting to use a new framework or class: _OBJC_CLASS_$_'XYZ' There are mainly two reasons why this error occurs. 1. Forgotten to include a framework that you are attempting to use. 2. A class's .m file isn't included in the…
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…
Both Boundary Value Analysis (BVA) and Equivalence Partitioning (EP) are test case design strategies in black box testing. As with any mildly complex piece of software it is impossible to exhaustively test it so we must ensure that the tests we do perform are as efficient and effective as possible.…