#define runTime 1.0
#define kDetal 50
//左旋转
- (IBAction)runzuo:(id)sender {
[UIViewbeginAnimations:nilcontext:nil];
[UIViewsetAnimationDuration:1.0];
_btn.transform = CGAffineTransformRotate(_btn.transform,- M_PI_4);
[UIViewcommitAnimations];
}
//右旋转
- (IBAction)runright:(id)sender {
[UIViewbeginAnimations:nilcontext:nil];
[UIViewsetAnimationDuration:1.0];
_btn.transform = CGAffineTransformRotate(_btn.transform, M_PI_4);
[UIViewcommitAnimations];
}
//变大
- (IBAction)big:(id)sender {
[UIViewbeginAnimations:nilcontext:nil];
[UIViewsetAnimationDuration:1.0];
_btn.transform = CGAffineTransformScale(_btn.transform, 1.2, 1.2);
[UIViewcommitAnimations];
}
//变小
- (IBAction)minus:(id)sender {
[UIViewbeginAnimations:nilcontext:nil];
[UIViewsetAnimationDuration:1.0];
_btn.transform = CGAffineTransformScale(_btn.transform, 0.8,0.8);
[UIViewcommitAnimations];
}
相关推荐
PanSlip - 使用PanGesture来关闭UIViewController和UIView上的视图
UIViewController-KeyboardAdditions 迅捷版 对于Swift兼容版本,请查看 描述 UIViewController+KeyboardAdditions类别通过使用几种简单方法扩展UIViewController类来简化键盘处理逻辑。 支持自动版式和基于frame的...
PanSlip使用PanGesture可以关闭UIViewController和UIView上的视图。 PanSlip到UIViewController从左到右,从右到左,从上到下,从下到上。PanSlip使用PanGesture可以关闭UIViewController和UIView上的视图。 简介从...
UIViewController-HYPKeyboardToolbar 一种在显示键盘时重新定位 ViewController 的 UIToolbar 的简单方法。用法# import " UIViewController+HYPKeyboardToolbar.h "// Usually in init- ( void )hyp_...
UIViewController-KBDropdownController 用于呈现自定义下拉控制器的简单 UIViewController 类别。 介绍 当前的下拉控制器需要大量的工作来处理子视图控制器和动画。 这个 UIViewController 类别使处理变得简单,并...
UIViewController-DTFDismiss UIViewController-DTFDismiss 是 UIViewController 上的一个类别,允许关闭或弹出视图控制器,而无需在您希望功能的每个 UIViewController 中连续编写相同的代码。 该类别公开了 3 个 ...
UIViewController-> URL路由器。 @router . map ( "profile/:id" , ProfileController ) # Later on... # Pushes a ProfileController with .initWithParams(:id => 189) @router . open ( "profile/189" ) 为...
UIViewController-KeyboardAnimation是UIViewController的扩展,能够帮助您很简单地解决键盘出现/收起的时候,自己的视图的移动的问题。这是一个非常实用,常用的工具,如果是需要对话框类场景(或者其他需要键盘...
iOS, UIViewController, UIView, UIViewController的加载方式和UIView的加载详解
012 Word Color - 带有 UITableView 和 UICollectionView 的精益 UIViewController 描述:演示如何从 UIViewController 中分离 UITableViewDataSource 和 UICollectionViewDataSource。 参考:
- ( void )hyp_addViewController:(UIViewController *)controller;- ( void )hyp_addViewController:(UIViewController *)controller inFrame:( CGRect )frame;- ( void )hyp_removeViewController:...
#UIViewController 层次结构的递归描述 相当于 UIView 的 recursiveDescription 方法,但用于检查应用程序中的视图控制器层次结构。 #夏洛克! 不再需要,现在_printHierarchy在调试器中可用。
UIViewController+Insets UIViewController+Insets是在iOS类别UIViewController计算布局插图用于通过半透明条遮挡的视图控制器内部的视图。 它查找视图控制器层次结构,因此它还将确定被父视图控制器的半透明导航...
来源:github/UIViewControllerLicence:MIT作者:Dmitry Klimkin UIViewController的一个category,可以很方便地实现App的各种新手指引效果。
UIViewController +子控制器 关于 在一行中添加子控制器。 使用 # import " UIViewController+Subcontrollers.h " @implementation MyViewController ... - ( void ) addSubcontrollers { // add subcontroller to ...
- ( void )prepareForSegue:(UIStoryboardSegue *)segue sender:( id )sender { if ([segue.identifier isEqualToString: @" segue1 " ]) { UIViewController *destination = segue. destinationViewController ; ...
自己写了一个Dome 实现了UIView或者时UIViewController 缩放动画效果
UIViewController和Uiview是两个不同的类UIViewController是视图控制器 而UIView是视图也就是说,UIViewController是控制UIView的。你也可以认为UIViewController就是一个相框,而UIView就是一个相片,相框可以...
来源:github/UIViewControllerLicence:MIT作者:Andrew Podkovyrin UIViewControllerKeyboardAdditions能够帮助你的键盘不会阻档你的输入框,合理的收起并控制输入框的位置。有需要的同学来看看吧。
在背景模糊的弹出窗口中显示UIViewController_Objective-C_Ruby_下载.zip