判断设备横竖屏:
UIDeviceOrientationIsLandscape([[UIApplication sharedApplication]statusBarOrientation]);
设置图片圆角:
1.添加库:QuartzCore.framework
2.添加头文件:#import <QuartzCore/QuartzCore.h>
3.设置imageView:
imageView.layer.cornerRadius = 6;
imageView.layer.masksToBounds = YES;
相片旋转:
_image = [UIImage imageWithCGImage:asset.defaultRepresentation.fullScreenImage];
去掉应用图标的高亮效果:
如果自己认为图标做的很好,不想要apple给做的效果的话,
那么设置如下:
Icon already includes gloss effects = YES