你的位置:首页 > 软件开发 > 操作系统 > 用动画切换按钮的状态

用动画切换按钮的状态

发布时间:2016-05-22 00:00:04
用动画切换按钮的状态 效果 源码https://github.com/YouXianMing/UI-Component-Collection//// BaseControl.h// BaseButton//// Created by YouXianMing on 15/8 ...

用动画切换按钮的状态

用动画切换按钮的状态

用动画切换按钮的状态

 

效果

用动画切换按钮的状态

 

源码

https://github.com/YouXianMing/UI-Component-Collection

//// BaseControl.h// BaseButton//// Created by YouXianMing on 15/8/27.// Copyright (c) 2015年 YouXianMing. All rights reserved.//#import <UIKit/UIKit.h>@class BaseControl;@protocol BaseControlDelegate <NSObject>@optional/** * 点击事件触发 * * @param control BaseControl对象 */- (void)baseControlTouchEvent:(BaseControl *)control;@end@interface BaseControl : UIView/** * 代理方法 */@property (nonatomic, weak) id <BaseControlDelegate> delegate;#pragma mark - 以下方法需要子类重载/** * 触发了点击事件 */- (void)touchEvent;/** * 拖拽到rect外面触发的事件 */- (void)touchDragExit;/** * 点击事件开始 */- (void)touchBegin;@end

原标题:用动画切换按钮的状态

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录