码迷,mamicode.com
首页 >  
搜索关键字:cgrect    ( 583个结果
ios 界面开发中的常见元素
界面开发中的 CGPoint、CGSize、CGRect、CGRectMake、window(窗口)、视图(view)简单记录定义/* Points. */ struct CGPoint { CGFloat x; CGFloat y; }; typedef struct CGP...
分类:移动开发   时间:2014-10-27 22:45:05    阅读次数:266
UIBezierPath IOS贝塞尔曲线
//记录 贝塞尔曲线使用//根据一个矩形画曲线+ (UIBezierPath *)bezierPathWithRect:(CGRect)rect//根据矩形框的内切圆画曲线+ (UIBezierPath *)bezierPathWithOvalInRect:(CGRect)rect//根据矩形画带圆...
分类:移动开发   时间:2014-10-22 18:06:39    阅读次数:168
UITextView获取光标位置
UITextRange *range = textView.selectedTextRange;     //光标位置     CGRect  rect = [textView caretRectForPosition:range.start];     当UITextView的光标在最后位置连续输入4个或以上换行符号时,输出rect为 {{inf,inf},{0,0}}...
分类:其他好文   时间:2014-10-21 12:16:43    阅读次数:298
点击任何处,弹出另外一个界面(出行搭档)
点击任何处的效果图:文件目录:MoreView.h#import @interface MoreView : UIView@endMoreView.m#import "MoreView.h"@implementation MoreView- (id)initWithFrame:(CGRect)fra...
分类:其他好文   时间:2014-10-21 11:50:59    阅读次数:125
IOS图像处理(3)绘制路径
通过路径我们可以实现更加复杂的图形的绘制,比如多边形,弧,圆角矩形等等- (void)drawRect:(CGRect)rect{ //获取图像上下文对象 CGContextRef context = UIGraphicsGetCurrentContext(); CGContext...
分类:移动开发   时间:2014-10-19 21:09:52    阅读次数:220
iOS - 图片合成
1 - (UIImage *)addImage:(UIImage *)image1 withImage:(UIImage *)image2 rect1:(CGRect)rect1 rect2:(CGRect)rect2 { 2 CGSize size = CGSizeMake(rect1....
分类:移动开发   时间:2014-10-19 18:30:56    阅读次数:204
IOS图像处理(2)绘制文本
IOS中可以通过CGContextShowTextAtPoint来绘制文字,但这个方法不支持中文字符,而且在ios7之后也不推荐使用我们可以通过NSString的drawAtPoint以及drawInRect实现更加简单的文字绘制- (void)drawRect:(CGRect)rect{ /...
分类:移动开发   时间:2014-10-19 15:38:33    阅读次数:252
黑马程序员——OC语言基本语法知识foundation
1.结构体:NSRange、NSPoint(CGPoint)、NSSize(CGSize)、NSRect(CGRect)NSRange:表示范围,有两个成员变量:location,length例如:@“Iloveyou”求出love的范围intmain(){NSRanger1=NsMakeRange...
分类:编程语言   时间:2014-10-18 23:46:20    阅读次数:243
UIPickerView更改大小
1、网上找的这个是MRC代码: UIPickerView *pickerView = [[UIPickerView alloc] initWithFrame:CGRectZero]; CGRect pickerRect = CGRectMake(680, 60, 100, 650); ...
分类:其他好文   时间:2014-10-17 21:46:20    阅读次数:133
UIView常见属性方法
UIView : UIResponder<NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem> /** ?*? 通过一个frame来初始化一个UI控件 ?*/ - (id)initWithFrame:(CGRect)frame; // YES:能够跟用户进行交互 @pro...
分类:其他好文   时间:2014-10-11 23:13:07    阅读次数:266
583条   上一页 1 ... 48 49 50 51 52 ... 59 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!