雷达使用UIScrollView做的UIView * contanerView = [[UIView alloc] initWithFrame:self.bounds];[self addSubview:contanerView];_containerView = contanerV...
分类:
其他好文 时间:
2015-10-22 21:16:42
阅读次数:
168
1、app尺寸,去掉状态栏CGRect r = [ UIScreen mainScreen ].applicationFrame;r=0,20,320,4602、屏幕尺寸CGRect rx = [ UIScreen mainScreen ].bounds;r=0,0,320,4803、状态栏尺寸CG...
分类:
移动开发 时间:
2015-10-21 22:30:52
阅读次数:
157
1.获得屏幕的宽高 [UIScreen mainScreen].bounds.size.width [UIScreen mainScreen].bounds.size.height2.Iphone版本判别: iPhone5 ([UIScreen instancesRespondToSelect...
分类:
移动开发 时间:
2015-10-18 21:27:03
阅读次数:
217
#import "AppDelegate.h"#define kScreenWidth CGRectGetWidth([[UIScreen mainScreen] bounds])#define kScreenHeight CGRectGetHeight([[UIScreen mainScreen]...
分类:
其他好文 时间:
2015-10-17 13:22:42
阅读次数:
280
在unity 5.x开发中遇到了一个很郁闷的问题,这个问题不会影响你的游戏的运行,但是却会使你在演示或是交流的时候出现尴尬。问题描述:Mesh.colors is out of bounds. The supplied array needs to be the same size as the M...
分类:
编程语言 时间:
2015-10-14 21:43:46
阅读次数:
204
//设置按钮里面图片和文字的间距 btn.titleEdgeInsets=UIEdgeInsetsMake(0, 20, 0, 0); button.imageEdgeInsets = UIEdgeInsetsMake(5,13,21,button.titleLabel.bounds.siz...
分类:
移动开发 时间:
2015-10-13 16:58:40
阅读次数:
174
iOS开发UI篇—CAlayer(创建图层)一、添加一个图层添加图层的步骤:1.创建layer2.设置layer的属性(设置了颜色,bounds才能显示出来)3.将layer添加到界面上(控制器view的layer上) 1 // 2 // YYViewController.m 3 // 01-创.....
分类:
移动开发 时间:
2015-10-13 16:38:02
阅读次数:
247
关键字: Layer , position , Bounds , Frame ,anchorPoint.position 该layer在superLayer中的动画点。anchorpoint是确定一个内部的position,即用于在layer内的确定动画点位置。所以内部的innerPostion =...
分类:
其他好文 时间:
2015-10-13 13:33:39
阅读次数:
153
1. UIView是iOS系统中界面元素的基础,所有的界面元素都是继承自它。它本身完全是由CoreAnimation来实现的。它真正的绘图部分,是由一个CALayer类来管理。UIView本身更像是一个CALayer的管理器,访问它的跟绘图和跟坐标有关的属性,例如frame,bounds等,实...
分类:
其他好文 时间:
2015-10-13 10:37:57
阅读次数:
143
一.创建海报视图 :- (void)_createPosterView{// _posterView = [[UIView alloc] initWithFrame:self.view.bounds];// _posterView.backgroundColor = [UIColor o...
分类:
其他好文 时间:
2015-10-11 21:39:07
阅读次数:
331