Implementing a Custom UIActionSheet

This week the need arose to have a more powerful UIActionSheet that went beyond having just buttons. My initial reaction was to simply subclass UIActionSheet and add whatever was needed.  But an argument arose at to whether this was the best approach since Apple clearly indicates in the UIActionSheet Class Reference that

UIActionSheet is not designed to be subclassed, nor should you add views to its hierarchy. If you need to present a sheet with more customization than provided by the UIActionSheet API, you can create your own and present it modally with presentViewController:animated:completion:.

Continue reading