呃,代码没带回来,想总结的细节点,有很多竟然一时无法完整想起。因此
现在就想到几点写几点吧。拿到代码后,在持续补充。
1>UIView(UIImageView) 围绕中心旋转
[UIView beginAnimations:nil context:nil];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView setAnimaionDuration:.1f]; //设置动画时长
photoImg.layer.anchorPoint = CGPointMake(0.5,0.5); //围绕中心旋转
photoImg.transform = CGAffineTransformMakeRotation(M_PI);
[UIView comitAnimations];
2>ios7下,视图布满全屏
{
if( [[UIDevice currentDevice] systemVersion] floatValue] >= 7.0 )
{
CGRect frame = self.navigationController.view.frame;
self.automaticallyAdjustScrollViewInsets = NO;
[self setNeedsStatusBarAppearanceUpdate];
}
}
3>ios状态栏白色字体
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[self setNeedsStatusBarAppearanceUpdate];
4>UITableView消除Section的粘滞性(viewForHeadSection随表单滚动)
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
CGFloat sectionHeaderHeight = 60;
if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView.contentOffset.y>=0) {
scrollView.contentInset = UIEdgeInsetsMake(-scrollView.contentOffset.y, 0, 0, 0);
} else if (scrollView.contentOffset.y>=sectionHeaderHeight) {
scrollView.contentInset = UIEdgeInsetsMake(-sectionHeaderHeight, 0, 0, 0);
}
}