不积跬步,无以至千里;不积小流,无以成江海

Our practice

不积跬步,无以至千里;不积小流,无以成江海

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年4月25日

摘要: 对图层的操作:1.给图层添加背景图片:myView.layer.contents= (id)[UIImageimageNamed:@"view_BG.png"].CGImage;2.将图层的边框设置为圆脚myWebView.layer.cornerRadius=8;myWebView.layer.masksToBounds=YES;3.给图层添加一个有色边框myWebView.layer.borderWidth=5;myWebView.layer.borderColor= [[UIColorcolorWithRed:0.52green:0.09blue:0.07alpha: 阅读全文
posted @ 2011-04-25 17:48 英怀 阅读(510) 评论(0) 推荐(0) 编辑

摘要: 来源于:http://www.voland.com.cn/the-effect-of-the-type-and-implement-for-iphone实现iphone漂亮的动画效果主要有两种方法,一种是UIView层面的,一种是使用CATransition进行更低层次的控制,第一种是UIView,UIView方式可能在低层也是使用CATransition进行了封装,它只能用于一些简单的、常用的效果展现,这里写一个常用的示例代码,供大家参考。[UIView beginAnimations:@"Curl"context:nil];//动画开始 [UIView setAnima 阅读全文
posted @ 2011-04-25 11:39 英怀 阅读(792) 评论(0) 推荐(0) 编辑

摘要: - (void)viewDidLoad { [super viewDidLoad]; NSIndexPath *ip=[NSIndexPath indexPathForRow:0 inSection:0]; [myTableView selectRowAtIndexPath:ip animated:YES scrollPosition:UITableViewScrollPositionBottom];} 阅读全文
posted @ 2011-04-25 11:18 英怀 阅读(9049) 评论(0) 推荐(0) 编辑