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: 11 days ago
JSON representation
Provides an easy way to make popovers with styled action buttons (buttons provided by Jeff LaMarche)
- Host: GitHub
- URL: https://github.com/domesticcatsoftware/DCActionButtonsController
- Owner: domesticcatsoftware
- License: mit
- Created: 2011-05-27T06:11:24.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-05-27T07:09:23.000Z (almost 14 years ago)
- Last Synced: 2025-03-29T21:02:22.591Z (17 days ago)
- Language: Objective-C
- Homepage: domesticcat.com.au/projects/
- Size: 450 KB
- Stars: 38
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
- awesome - DCActionButtonsController - Provides an easy way to make popovers with styled action buttons (buttons provided by Jeff LaMarche) (etc)
- awesome - DCActionButtonsController - Provides an easy way to make popovers with styled action buttons (buttons provided by Jeff LaMarche) (etc)
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).

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
* GradientButtonStyleWhiteActionSheetLicense
-------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.