2013年10月1日
摘要: 从一个场景转到另一个场景。多视图控制器的model,push这些都是转场动画。共同的特点是,在转场过程中不能交互。CATransitiontype:动画类型subtype:动画过渡方向动画之间的关联关系转场动画支持方向type和subtype都是字符串。type有关键字设置type和subtype,有些有关键字常量,但可以直接使用字符串。- (void)myswipe:(UISwipeGestureRecognizer *)gesture{ CATransition *transiton = [[CATransition alloc] init]; UIImageView *imagevi.. 阅读全文
posted @ 2013-10-01 00:43 老猫zl 阅读(250) 评论(0) 推荐(0) 编辑
  2013年9月30日
摘要: - (void)tapAction:(UITapGestureRecognizer *)recognizer{ // 取出手势的触摸点 CGPoint location = [recognizer locationInView:self.view]; // 1. 实例化动画组 CAAnimationGroup *group = [[CAAnimationGroupalloc]init]; CFTimeInterval duration = 2.0; // 2. 定义动画组中的动画// CAKeyframeAnimation *anim1 = [AnimationView mo... 阅读全文
posted @ 2013-09-30 23:45 老猫zl 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 如果使用路径动画,设置的关键点values就失去作用。0)创建动画1) 创建路径2)设置路径内容3)将路径添加到动画4)释放路径5)将动画添加到图层//// AnimationView.m// 关键帧动画_demo1//// Created by mac on 13-9-30.// Copyright (c) 2013年 mac. All rights reserved.//#import "AnimationView.h"#import @implementation AnimationView- (id)initWithFrame:(CGRect)frame{ self 阅读全文
posted @ 2013-09-30 19:51 老猫zl 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 关键帧动画和基本动画一样。创建步骤都是1 实例化动画对象2 设置属性3 添加到图层。如果使用了路径,values属性就被忽略。对于位移动画,需要在动画结束时候,设置视图位置。在创建动画的时候需要设置代理。然后在动画结束代理程序里设置位置。//// AnimationView.m// 关键帧动画_demo1//// Created by mac on 13-9-30.// Copyright (c) 2013年 mac. All rights reserved.//#import "AnimationView.h"#import @implementation Animati 阅读全文
posted @ 2013-09-30 18:19 老猫zl 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 基本动画创建的步骤1 根据keypath创建动画对象2 设置基本属性3 添加到视图的图层//// MainViewController.m// animation_demo3//// Created by mac on 13-9-30.// Copyright (c) 2013年 mac. All rights reserved.//#import "MainViewController.h"@interfaceMainViewController ()@property (nonatomic,weak) UIView *myview;@end@implementation 阅读全文
posted @ 2013-09-30 15:59 老猫zl 阅读(435) 评论(0) 推荐(0) 编辑
摘要: CABasicAnimation animationWithKeyPath TypesWhen using the ‘CABasicAnimation’ from the QuartzCore Framework in Objective-C, you have to specify an animationWithKeyPath.This is a long string and is not easily listed in the CABasicAnimation, CAPropertyAnimation, or the CAAnimation class.I ended up find 阅读全文
posted @ 2013-09-30 13:11 老猫zl 阅读(666) 评论(0) 推荐(0) 编辑
  2013年9月3日
摘要: 通过tag获取控件MyButton *btn = (MyButton *)[self.contentView viewWithTag:tag];通过segue跳转页面[selfperformSegueWithIdentifier:@"playGame"sender:sender];取消模式窗口[selfdismissViewControllerAnimated:YEScompletion:nil];呈现模式窗口[selfpresentViewController:imagePicker animated:YEScompletion:nil];设置imageview里图片按照 阅读全文
posted @ 2013-09-03 22:44 老猫zl 阅读(253) 评论(0) 推荐(0) 编辑
  2013年8月23日
摘要: 创建一个视图,先在文件检查器里去掉自动布局选项。然后调整视图尺寸到3.5UIView的作用是布局,渲染,分发事件。常用到的视图控制器是UIViewControllerUINavigationControllerUITabBarControllerUITableViewController//// AppDelegate.m// WX_01_controller//// Created by mac on 13-8-23.// Copyright (c) 2013年 mac. All rights reserved.//#import "AppDelegate.h"#impo 阅读全文
posted @ 2013-08-23 13:38 老猫zl 阅读(466) 评论(0) 推荐(0) 编辑
  2012年10月10日
摘要: WCF分布式开发常见错误(12):The server was unable to process the request,服务无法处理请求分类:WCF分布式开发常见错误2009-05-30 16:19668人阅读评论(0)收藏举报Posted on 2009-05-30 16:23Frank Xu Lei阅读(434)评论(0)编辑收藏网摘所属分类:WCF分布式开发常见错误 进行WCF编程过程中会遇到这样的错误:服务无法处理的请求由于内部错误。 具体信息如下:The server was unable to process the request due to an internal err 阅读全文
posted @ 2012-10-10 15:14 老猫zl 阅读(195) 评论(0) 推荐(0) 编辑
  2012年10月9日
摘要: 怎么删除本地远程桌面地址记录(连接地址输入框的下拉菜单)。 首先运行regedit,打开注册表,找到 HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default 右边的那些键值就记录了IP或者域名,选择,删除,然后在Default上右键 权限,把Administrator相关的下面选项选拒绝!确定,就不会记录了 另外最后一次连接的IP或者域名还是会显示在远程桌面连接的连接目标输入框上面,这个信息储存在“我的文档”下的“Default.rdp”文件中,是隐藏的,找出来删之即可。也可设置为只读 WIND... 阅读全文
posted @ 2012-10-09 17:34 老猫zl 阅读(858) 评论(0) 推荐(0) 编辑