Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/domesticcatsoftware/DCActionButtonsController

Provides an easy way to make popovers with styled action buttons (buttons provided by Jeff LaMarche)
https://github.com/domesticcatsoftware/DCActionButtonsController

Last synced: about 1 month ago
JSON representation

Provides an easy way to make popovers with styled action buttons (buttons provided by Jeff LaMarche)

Awesome Lists containing this project

README

        

DCActionButtonsController
==========

Twitter: [@patr](http://twitter.com/patr)

Our commercial apps: [domesticcat.com.au](http://domesticcat.com.au/apps)

DCActionButtonsController provides an easy way to create view controllers to sit inside a UIPopoverController with styled buttons. The buttons are GradientButtons by Jeff LaMarche, which you'll need to download from here: [https://github.com/baron/iPhone-Gradient-Buttons](https://github.com/baron/iPhone-Gradient-Buttons).

![DCActionButtonsController Demo Image](http://domesticcat.com.au/projects/dcactionbuttonscontroller/dcactionbuttonscontroller-demo.png)

To use, add buttons using `addButtonWithTitle:style:style:target:action:`. Then set it as the content view of your popover and it will size itself accordingly. See the demo project for an example.

There are several button styles to choose from:

* GradientButtonStyleAlert
* GradientButtonStyleBlack
* GradientButtonStyleBlackActionSheet
* GradientButtonStyleGreenConfirm
* GradientButtonStyleRedDelete
* GradientButtonStyleSimpleOrange
* GradientButtonStyleWhite
* GradientButtonStyleWhiteActionSheet

License
-------

Made available under the MIT License. We'd love to know if you find this code useful or use it in your app: contact at domesticcat.com.au.