页面间的跳转动画
最终效果如下:
源代码在:这里
给tableView cell设置圆角,效果图如下所示:
方法如下:在自定义的CustomCell里添加这样的方法:
// // 设置阴影
self.imgView.clipsToBounds = YES;
self.imgView.layer.cornerRadius = 20;
self.contentView.clipsToBounds = YES;
self.layer.cornerRadius = 20;
self.contentView.layer.cornerRadius = 20.0f;
self.layer.shadowColor = [UIColor darkGrayColor].CGColor;
self.layer.shadowOffset = CGSizeMake(5, 5);
self.layer.shadowRadius = 4.0f;
self.layer.shadowOpacity = 0.5f;
最关键的就是设置contentView。