您的位置:首页 > 产品设计 > UI/UE

iOS一些常用的UI操作

2012-12-19 22:40 302 查看
判断设备横竖屏:

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: