TJLButtonView 1.0.1

TJLButtonView 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total93
Week0
Month0

Installs

Apps5
powered by Segment

GitHub

Stars14
Watchers2
Forks3
Issues0
Contributors1
Pull Requests1

Code

Files2
LOCLines of Code 290


  • By
  • Terry Lewis II

A view with buttons arranged in a circle pattern that animate out from the center. Two Buttons        One Buttons

Installation


Cocoapods support is forth coming, in the meantime, just grab the source folder and drop it into your project and include the QuartzCore framework.

Usage


+initWithView:images:buttonTitles:
-setCloseButtonImage:
-setButtonTappedBlock:
-show
and thats it!

Currently the view only supports up to five images, and it works best with 3 or 5, but can work with just 2.

The button titles are set for the buttons disabled state, and are only used to let you know which button was tapped, so button titles should follow their purpose, as you will get sent the title of the tapped button. There is also a method for getting notified when the close button is tapped, setCloseButtonTappedBlock:, or if you prefer, you can use delgate methods instead of blocks.

Auto layout is also used, so all interface orientations and rotations are supported.

License

If you use TJLButtonView and you like it, feel free to let me know, [email protected]. If you have any issue or want to make improvements, submit a pull request.

The MIT License (MIT) Copyright (c) 2013 Terry Lewis II

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.