2012年6月29日
摘要: 使用普通的来CATransition实现转换效果,代码如下:CATransition *animation = [CATransition animation];[animation setDuration:0.3];[animation setType: kCATransitionMoveIn]; //kCATransitionFade,kCATransitionPush,kCATransitionReveal[animation setSubtype: kCATransitionFromTop]; //kCATransitionFromRight,kCATransitionFromLeft 阅读全文
posted @ 2012-06-29 17:51 tx天翔 阅读(433) 评论(0) 推荐(0) 编辑
摘要: 自定义的navigationBar,设置背景方法:IOS 5.0以前的设备添加:@implementation UINavigationBar (CustomImage) - (void)drawRect:(CGRect)rect { UIImage *image = [UIImage imageNamed: @"add_nav_bg_ipad.png"]; [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; }@endIOS 5.0 以后的设备再添加:在vi 阅读全文
posted @ 2012-06-29 16:59 tx天翔 阅读(2510) 评论(0) 推荐(0) 编辑
摘要: UITableView设置背景图片:即设置tableView的backgroundViewUIView *view = [[UIView alloc] init]; view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"view_bg_ipad.png"]]; self.tableView.backgroundView = view; 阅读全文
posted @ 2012-06-29 16:53 tx天翔 阅读(5326) 评论(0) 推荐(0) 编辑