摘要:
使用普通的来CATransition实现转换效果,代码如下:CATransition *animation = [CATransition animation];[animation setDuration:0.3];[animation setType: kCATransitionMoveIn]; //kCATransitionFade,kCATransitionPush,kCATransitionReveal[animation setSubtype: kCATransitionFromTop]; //kCATransitionFromRight,kCATransitionFromLeft 阅读全文
摘要:
自定义的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 阅读全文
摘要:
UITableView设置背景图片:即设置tableView的backgroundViewUIView *view = [[UIView alloc] init]; view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"view_bg_ipad.png"]]; self.tableView.backgroundView = view; 阅读全文