码迷,mamicode.com
首页 >  
搜索关键字:cgrect    ( 583个结果
简单绘画实现 点、线、面
使用绘画 必须在 -(void)drawRect:(CGRect)rect 中使用例子:- (void)drawRect:(CGRect)rect{ CGContextRef context=UIGraphicsGetCurrentContext(); CGColorSpaceR...
分类:其他好文   时间:2014-09-02 22:36:35    阅读次数:415
从头开始-07.Foundation框架常用结构体
一、Foundation框架常用结构体NSRange\CGRange、NSPoint\CGPoint、NSSize\CGSize、 NSRect\CGRect 的使用1. 基本使用: //NSRange的使用 NSRange r1 = NSMakeRange(2, 4); //第一个参数为...
分类:其他好文   时间:2014-09-02 01:33:33    阅读次数:177
ios点击产生波纹效果
ios点击产生波纹效果by 伍雪颖- (void)viewDidLoad{ [super viewDidLoad]; RippleView = [[UIView alloc] initWithFrame:(CGRect){0,0,300,300}]; RippleView.back...
分类:移动开发   时间:2014-08-29 19:54:58    阅读次数:205
UIButton
UIButton中有个p_w_picpathView和titleLabel,要设置位置,可用一个急于UIButton的类里重写-(CGRect)titleRectForContentRect:(CGRect)contentRect;//调整UIButton内部的titleLable的frame或-(CGRect)p_w_picpathRectForContentRect:(CGRect)contentRect;//调整UIButton内部的U..
分类:其他好文   时间:2014-08-29 02:56:37    阅读次数:174
ios7 tableViewCell 图片显示不居中
@interface MyProfileViewCell : UITableViewCell@end@implementation MyProfileViewCell- (void)layoutSubviews{ [super layoutSubviews]; CGRect frame ...
分类:移动开发   时间:2014-08-26 13:09:26    阅读次数:172
Foundation
1、Foundation框架-常用结构体NSRange(location length)NSPoint\CGPointNSSize\CGSizeNSRect\CGRect (CGPint CGSize)2、使用这些CGPointEqualToPoint、CGRectContainsPoint等函数的...
分类:其他好文   时间:2014-08-25 22:44:05    阅读次数:321
【黑马程序员】————Foundation框架01常用结构体
------Java培训、Android培训、iOS培训、.Net培训、期待与您交流! -------NSRange(location length)NSPoint\CGPointNSSize\CGSizeNSRect\CGRect (CGPint CGSize)1、NSRange(location...
分类:其他好文   时间:2014-08-24 11:30:32    阅读次数:296
利用Quartz2D画矩形
/**1.画矩形: UIRectFill2.内存管理*/- (void)drawRect:(CGRect)rect{ CGContextRef ctx = UIGraphicsGetCurrentContext(); CGMutablePathRef path = CGPathCreateMutab...
分类:其他好文   时间:2014-08-23 16:43:41    阅读次数:260
photoWall自定义
- (instancetype)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { _scrollView = [[UIScrollView alloc] initWith...
分类:其他好文   时间:2014-08-22 17:45:09    阅读次数:229
菱形开合的实现 IOS
实现的原理:利用了自动布局和形变核心代码块:@implementation JHMainView{ UILabel *label1,*label2,*label3,*label4; UIButton *btn;}- (id)initWithFrame:(CGRect)frame{ self =...
分类:移动开发   时间:2014-08-20 13:53:02    阅读次数:237
583条   上一页 1 ... 51 52 53 54 55 ... 59 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!