Showing posts with label uialertview. Show all posts
Showing posts with label uialertview. Show all posts

Thursday, March 8, 2012

Create UIActionSheet "otherButtons" by passing in array, not varlist


I have an array of strings that I want to use for button titles on a UIActionSheet. Unfortunately, the otherButtonTitles: argument in the method invocation takes a variable length list of strings, not an array.

Wednesday, February 8, 2012

iPhone - How to handle errors at runtime


When writing code, there are many situations that must be treated as runtime errors : an alloc/init returns nil, a resource is not found, a [someClass canDoThis] returns NO for an absolutely-needed feature where YES would be the natural answer, ...