All Projects → JustinFincher → Jzmultichoicescirclebutton

JustinFincher / Jzmultichoicescirclebutton

Licence: mit
🔘 Multi choice circle button with cool 3d parallax effect, but seriously don't use this in production now, I will rewrite it to a delegate based UIControl when I am available.

Projects that are alternatives of or similar to Jzmultichoicescirclebutton

Jztvosparallaxbutton
📺 tvOS Button with Parallax Effect (ObjC)
Stars: ✭ 161 (-57.63%)
Mutual labels:  ios-animation, uibutton
Marqueelabel
Charles Powell
Stars: ✭ 3,741 (+884.47%)
Mutual labels:  ios-animation
react-native-swipe-cards-interaction
React native swipe cards interaction
Stars: ✭ 142 (-62.63%)
Mutual labels:  ios-animation
Gemini
Gemini is rich scroll based animation framework for iOS, written in Swift.
Stars: ✭ 2,965 (+680.26%)
Mutual labels:  ios-animation
RTIconButton
A Interface Builder configurable UIButton with a image icon
Stars: ✭ 40 (-89.47%)
Mutual labels:  uibutton
Somo
Somo is a iOS Skeleton-style animation library that's simple enough,and in objective-c
Stars: ✭ 299 (-21.32%)
Mutual labels:  ios-animation
circularProgressBar
This repo contains a demo app for circularProgressBar.swift
Stars: ✭ 17 (-95.53%)
Mutual labels:  ios-animation
Mevhorizontalcontacts
An iOS UICollectionViewLayout subclass to show a list of contacts with configurable expandable items.
Stars: ✭ 358 (-5.79%)
Mutual labels:  ios-animation
Hotels
酒店预订App
Stars: ✭ 323 (-15%)
Mutual labels:  ios-animation
Flawless Ios
Awesome iOS guides from the community, shared on Flawless iOS Medium blog 👉
Stars: ✭ 260 (-31.58%)
Mutual labels:  ios-animation
Kinetic
A flexible tweening library for iOS in Swift similar to GSAP's TweenMax.
Stars: ✭ 54 (-85.79%)
Mutual labels:  ios-animation
TezButton
TezButton is include Title/Backgound Color, border, corner radius options and Bottom/Left label, Include data button.
Stars: ✭ 20 (-94.74%)
Mutual labels:  uibutton
Kdintroview
Stars: ✭ 300 (-21.05%)
Mutual labels:  ios-animation
IGStoryButtonKit
IGStoryButtonKit provides an easy-to-use button with rich animation and multiple way inspired by instagram story/stories.
Stars: ✭ 31 (-91.84%)
Mutual labels:  ios-animation
React Native Dating App
Dating app - Exponent and React Native
Stars: ✭ 352 (-7.37%)
Mutual labels:  ios-animation
KVSpinnerView
KVSpinnerView is highly customizable progress HUD
Stars: ✭ 37 (-90.26%)
Mutual labels:  ios-animation
Selector-Closure
A light way to convert objc target-action style to closure
Stars: ✭ 14 (-96.32%)
Mutual labels:  uibutton
Iosproject
IOS综合项目,完善的框架,路由模块化设计,集成科大讯飞SDK方便iOS基本输入控件实现语音辅助输入,UI效果参照京东APP,JS与OC交互,ionic跨平台开发,MQTT 协议,即时通讯协议,视屏播放,跑马灯效果 仿美团地图定位,城市收索, 友盟分享,基础动画 增加FCUIID帮助类,引导页功能模块,照片上传 ,UIView自定义导航栏,文件下载,Masonry 案例,fmdb,数据库,sqlite,百度地图,二维码,照片上传,照片上传有进度,列表倒计时,H5和原生交互,自定义各种弹框,常见表单类型,人脸识别,列表加载图片,列表拖拽,日历操作,导航条渐变,核心动画,动画特效等等
Stars: ✭ 291 (-23.42%)
Mutual labels:  ios-animation
Jthamburgerbutton
An animated hamburger button for iOS.
Stars: ✭ 358 (-5.79%)
Mutual labels:  ios-animation
Ssspinnerbutton
Forget about typical stereotypic loading, It's time to change. SSSpinnerButton is an elegant button with a diffrent spinner animations.
Stars: ✭ 357 (-6.05%)
Mutual labels:  uibutton

JZMultiChoicesCircleButton

JZ.jpg

[![CI Status](http://img.shields.io/travis/Fincher Justin/JZMultiChoicesCircleButton.svg?style=flat)](https://travis-ci.org/Fincher Justin/JZMultiChoicesCircleButton) Version License Platform

#Introduction JZMultiChoicesCircleButton is a Multi-choices button.
Just tap it and hold to your choice! yeah ,so cool, such easy.
It's inspired by Nicola Felasquez Felaco's work
And This is my implementation using ObjC, demo gif:
DemoGiF.gif

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

#import "JZMultiChoicesCircleButton.h"

- (void)viewDidLoad {
    [super viewDidLoad];

    NSArray *IconArray = [NSArray arrayWithObjects: [UIImage imageNamed:@"SendRound"],[UIImage imageNamed:@"CompleteRound"],[UIImage imageNamed:@"CalenderRound"],[UIImage imageNamed:@"MarkRound"],nil];
    NSArray *TextArray = [NSArray arrayWithObjects: [NSString stringWithFormat:@"Send"],[NSString stringWithFormat:@"Complete"],[NSString stringWithFormat:@"Calender"],[NSString stringWithFormat:@"Mark"], nil];
    NSArray *TargetArray = [NSArray arrayWithObjects:[NSString stringWithFormat:@"ButtonOne"],[NSString stringWithFormat:@"ButtonTwo"],[NSString stringWithFormat:@"ButtonThree"],[NSString stringWithFormat:@"ButtonFour"] ,nil];
    
    NewBTN = [[JZMultiChoicesCircleButton alloc] initWithCenterPoint:CGPointMake(self.view.frame.size.width / 2 , self.view.frame.size.height / 2 )
                                                                                      ButtonIcon:[UIImage imageNamed:@"send"]
                                                                                     SmallRadius:30.0f
                                                                                       BigRadius:120.0f
                                                                                    ButtonNumber:4
                                                                                      ButtonIcon:IconArray
                                                                                      ButtonText:TextArray
                                                                                    ButtonTarget:TargetArray
                                                                                     UseParallex:YES
                                                                               ParallaxParameter:300
                                                                           RespondViewController:self];
    [self.view addSubview:NewBTN];
    
}

ButtonIcon: UIImage,the icon in the small button
SmallRadius and BigRadius: CGFloat, Small button radius and the size when it's animated
ButtonNumber: int, how many buttons
ButtonIcon: NSArray of UIImage
ButtonText: NSArray of NSString
ButtonTarget : NSArray of NSString,just String of selector and JZMultiChoicesCircleButton will use NSSelectorFromString to transform it to SEL
UseParallex : BOOL, if YES will be 3D-like, or just 2D with no Parallex effect.
ParallaxParameter: CGFloat,bigger than 0, the smaller the cooler Parallex effect will be
RespondViewController: should be UIViewcontroller,the responder, simply 'self' will be ok.

- (void)SuccessLoadData
{
    [NewBTN SuccessCallBackWithMessage:@"YES!"];
}
- (void)ErrorLoadData
{
    [NewBTN FailedCallBackWithMessage:@"NO..."];
}

Use SuccessCallBackWithMessage and FailedCallBackWithMessage to show the animated infomation , or button will be full screen and don't disappear!!!!

Installation

JZMultiChoicesCircleButton is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "JZMultiChoicesCircleButton"

Or just grab JZMultiChoicesCircleButton.h and .m from github,
Edit

[UIImage imageNamed:@"CallbackSuccess" inBundle:bundle compatibleWithTraitCollection:nil];

With

[UIImage imageNamed:@"CallbackSuccess"];

and grab CallbackSuccess.png and CallbackWrong.png.

##TO-DO

1.Rewrite using scale down animation to prevent the blur CATextlayer

Author

Fincher Justin, [email protected]

License

JZMultiChoicesCircleButton is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].