旋转菜单和tab ,留着以后要实现类似效果时看
来源:互联网 发布:seo sem培训 编辑:程序博客网 时间:2024/06/06 16:36
https://github.com/Kjuly/KYCircleMenu
https://github.com/Kjuly/KYArcTab
KYCircleMenu
A circle menu with toggling animation. And you can customize the number of buttons between (1 ~ 6).
This control is separated from iPokeMon (a PokéMon game on iOS with Location Based Service), you can take a look at the demo video how cool it is!
- Youtube - 2012-05-09
- Youku - 2012-06-03 (Newer)
Usage
Designated Initializer
Use the designated initializer below to initialize the circle menu:
// |buttonCount| : count of buttons around (1<= x <=6)// |menuSize| : size of menu// |buttonSize| : size of buttons around// |buttonImageNameFormat| : name format for button image// |centerButtonSize| : size of center button// |centerButtonImageName| : name for center button image// |centerButtonBackgroundImageName| : name for center button background image- (id) initWithButtonCount:(NSInteger)buttonCount menuSize:(CGFloat)menuSize buttonSize:(CGFloat)buttonSize buttonImageNameFormat:(NSString *)buttonImageNameFormat centerButtonSize:(CGFloat)centerButtonSize centerButtonImageName:(NSString *)centerButtonImageNamecenterButtonBackgroundImageName:(NSString *)centerButtonBackgroundImageName;
Button Action
Override the -runButtonActions:
message to customize your button action:
- (void)runButtonActions:(id)sender { [super runButtonActions:sender]; // Do buttons' action appropriately by |[sender tag]| // ...}
Tags are defined like below:
TAG: 1 1 2 1 2 1 2 1 2 3 1 2 3 \|/ \|/ \|/ \|/ \|/ \|/COUNT: 1) --|-- 2) --|-- 3) --|-- 4) --|-- 5) --|-- 6) --|-- /|\ /|\ /|\ /|\ /|\ /|\TAG: 3 3 4 4 5 4 5 6
Navigation Bar
The default case is that the navigation bar is only shown in child views. If you want it to be shown with the circle menu together, add the macro below
#define KY_CIRCLEMENU_WITH_NAVIGATIONBAR 1
to your constatns.h or config.h, or any other files that are imported in your <Project>-Prefix.pch.
KYArcTab
Arcuated tab view controller with toggleing animation, 2 ~ 4 tabs are enabled. What's more, you can swipe left or right to toggle the views.
Usage
Subclass KYArcTabViewController
and override the -setup
message to configure the child view controllers.
Then use the designated initializer below to initialize the tab view controller when you need:
- (id) initWithTitle:(NSString *)title // title tabBarSize:(CGSize)tabBarSize // size of tab bartabBarBackgroundColor:(UIColor *)tabBarBackgroundColor // background color of tab bar itemSize:(CGSize)itemSize // size of items on tab bar arrow:(UIImage *)arrow; // arrow on the tab bar
- 旋转菜单和tab ,留着以后要实现类似效果时看
- Bootstrap使用Tab和dropdown实现导航下拉菜单效果
- Bootstrap Ace模板实现菜单和Tab页效果
- unity3d实现菜单旋转效果
- 为 android, ipad, surface 写的swipe旋转菜单效果 没有整理, 将就着看
- 留着以后看
- Fragment与自定义布局实现类似tab的效果
- Fragment与自定义布局实现类似tab的效果
- CToolBar和SetTimer结合实现类似PhotoShop - pallet的延迟菜单输出效果
- JQuery实现类似QQ下拉菜单式的效果
- jQuery实现类似QQ下拉菜单式的效果
- Android 实现类似美团的菜单效果
- jquery实现的全屏带左右切换按钮和类似风车四叶子旋转切换效果的全屏广告源
- 信息论,留着以后看
- 关于如何实现圆盘旋转菜单效果的android源代码
- Android之——史上最简单旋转菜单实现效果
- jquery tab菜单切换效果
- 类似百叶窗下拉菜单效果
- ActionSheetPicker :可以UI 取代表单代码里面写的 UIActionSheet ,更好看
- HTML <meta> 标签
- Objective-C中的锁
- seo杂谈
- linux源码安装之/ld.so.conf ; ldconfig ;configure;pkg-config PKG_CONFIG_PATH详解
- 旋转菜单和tab ,留着以后要实现类似效果时看
- poj 2411 Mondriaan's Dream
- this关键字_static_ 实例变量和类变量的区别_静态的应用
- 提供文字校验的工具
- 丁磊:互联网的“传统守护者”
- 布局工具-MosaicUI - 有空看一看
- 详解IOS SDK兼容性引导
- aaaaaaaaaa
- XCode工程中 Project 和 Targets区别