iOS UI Component: CustomUIActionSheet

custom_ui_actionsheet_banner

Custom UIActionsheet is an open source project that is an implementation of a UIActionSheet that supports the insertion of a clickable UIView as a subview to the action sheet. This functionality was previously not possible with Apple’s providedUIActionSheet class, as the action sheet would capture the touch events of its subviews, despite the touches occuring outside of the action sheet’s buttons.

custom_ui_actionsheet_example

Example uses for this custom UIActionSheet would be to include more functionality to your action sheet than just providing a message with “OK” and “Cancel” buttons: adding a UIDatePicker, adding other selectors, or adding switches are just the beginning of what you could do with this new action sheet.

Ultimately, what sets this implementation apart from other solutions out on the web is that it uses as much built-in functionality from Apple as much as possible, instead of the approach several other solutions out on the internet took by rolling out code that merely mimics the UIActionSheet’s functionality.

You can find the project on Github here: https://github.com/kleinlieu/CustomUIActionSheet