pod 'TKSubmitTransition'
use_frameworks!
btn = TKTransitionSubmitButton(frame: CGRectMake(0, 0, 44, 44))
func didStartYourLoading() {
btn.startLoadingAnimation()
}
func didFinishYourLoading() {
btn.startFinishAnimation {
//Your Transition
let secondVC = SecondViewController()
secondVC.transitioningDelegate = self
self.presentViewController(secondVC, animated: true, completion: nil)
}
}
This Library also supply fade-in Animator Class of UIViewControllerAnimatedTransitioning.
Please use This for transition animation.
class ViewController: UIViewController, UIViewControllerTransitioningDelegate {
secondVC.transitioningDelegate = self
// MARK: UIViewControllerTransitioningDelegate
func animationControllerForPresentedController(presented: UIViewController, presentingController presenting: UIViewController, sourceController source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
let fadeInAnimator = TKFadeInAnimator()
return fadeInAnimator
}
func animationControllerForDismissedController(dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return nil
}
Android用来处理界面上的表单验证源码
Android带阴影点击效果,可自定义属性的媒体播放控制按钮。包括
Android实现带3D视差效果的多选按钮
仿饿了么加入购物车旋转控件 - 自带闪转腾挪动画 的按钮
Android 表单验证 AValidations
从即将推出的Android L.新的抽屉指示器/后退箭头旋转绘制一个简
Android的设计素材UI库(包括按钮,开关,进度条,滑块,对话,
简单将RadioButton封装了一下Android 按钮组
分享自己写的两个比较好看的togglebutton
自定义支持圆角Button按钮
登录加载、返回按钮转场动画控件
Android 下高仿 iOS 的增强版滑动开关组件,含实现原理EasySwitc
热门源码