码迷,mamicode.com
首页 >  
搜索关键字:cgpoint    ( 294个结果
在控制器上加一个遮盖
先见一个遮盖类1.h文件#import CGPoint CGRectGetCenter(CGRect rect);CGRect CGRectMoveToCenter(CGRect rect, CGPoint center);@interface UIView (ViewFrameGeometry)@...
分类:其他好文   时间:2015-04-17 17:56:28    阅读次数:146
初识UI
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {     UIWindow * window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bound...
分类:其他好文   时间:2015-04-16 12:29:26    阅读次数:111
CAlayer层的属性
一、position和anchorPoint1.简单介绍CALayer有2个非常重要的属性:position和anchorPoint@property CGPoint position;用来设置CALayer在父层中的位置以父层的左上角为原点(0, 0)@property CGPoint ancho...
分类:其他好文   时间:2015-04-12 22:44:16    阅读次数:152
foundation基本用法
1* OC中的结构体lNSRange(location length)lNSPoint \ CGPointlNSSize \ CGSizelNSRect \ CGRect (CGPoint CGSize)使用CG.. 结构体需要添加CoreGraphiceNS…. 是一个框架Foundation ,...
分类:其他好文   时间:2015-04-09 15:15:55    阅读次数:283
1 、Quartz 2D绘图基础
Quartz 2D绘图 Quartz 2D绘图的核心API是CGContextRef,该API专门用于绘制各种图形。 关注微信公众号:ioscoding ,分享优质iOS编程技术。by:shuju 1.1  Quartz 2D绘图基础:CGContextRef 使用Quartz 2D绘图的关键步骤有两步:获取CGContextRef;调用CGContextRef的方法进行绘图。 不同...
分类:其他好文   时间:2015-04-08 15:12:02    阅读次数:119
手势。。。
UITouch1.UITouch *touch = [touches anyObject];//找到触摸事件 if([touch.view isKindOfClass:[UIImageView class]]){ CGPoint point = [touch locationInView:self....
分类:其他好文   时间:2015-04-02 20:35:14    阅读次数:199
模拟UIView的hitTest:方法和pointInside:方法的实现
对于UIView 的两个方法的讲解: - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event - (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent *)event 网上对这两个方法的讲解很多,但是大部分是纯文字的描述,我不再赘述,需要可以自己百度“UIView hitTest”...
分类:其他好文   时间:2015-03-30 23:09:16    阅读次数:194
黑马程序员----结构体(Range、Point、Size、Rect)的使用
------- android培训、java培训、期待与您交流! ----------1.NSRange:(范围) 2.NSPoint\CGPoint(NSPoint相当于CGPoint):(位置:X、Y)设置Point的两种方式:1.NSPoint point = NSMakePoint(100,...
分类:其他好文   时间:2015-03-22 00:25:20    阅读次数:184
【iOS开发】Foundation框架的总结
第一种:结构体 1》范围 NSRange等价于CGRange typedef struct _NSRange { unsigned int location; unsigned int length; } NSRange; 使用较多的是CGRangeMake()方法; 2》几何数据 struct CGPoint { float x; float y; }; s...
分类:移动开发   时间:2015-03-16 19:21:54    阅读次数:131
CGRectMake
1.基础知识——三个结构体CGPoint1 /* Points. */ 2 3 struct CGPoint { 4 CGFloat x; 5 CGFloat y; 6 }; 7 typedef struct CGPoint CGP...
分类:其他好文   时间:2015-03-15 16:36:30    阅读次数:132
294条   上一页 1 ... 19 20 21 22 23 ... 30 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!