iphone开发所感所悟,希望对其他开发者有所裨益。
iphone开发笔记1

退回输入键盘:
- (BOOL) textFieldShouldReturn:(id)textField{ [textField resignFirstResponder]; }
CGRect
CGRect frame = CGRectMake (origin.x, origin.y, size.width, size.height);矩形 NSStringFromCGRect(someCG) 把CGRect结构转变为格式化字符串; CGRectFromString(aString) 由字符串恢复出矩形;
CGRectInset(aRect) 创建较小或较大的矩形(中心点相同),+较小 -较大 CGRectIntersectsRect(rect1, rect2) 判断两矩形是否交叉,是否重叠 CGRectZero 高度和宽度为零的/位于(0,0)的矩形常量
CGPoint & CGSize
CGPoint aPoint = CGPointMake(x, y); CGSize aSize = CGSizeMake(width, height);
设置透明度 [myView setAlpha:value]; (0.0 < value < 1.0) 设置背景色 [myView setBackgroundColor:[UIColor redColor]];
(blackColor;darkGrayColor;lightGrayColor;whiteColor;grayColor; redColor; greenColor; blueColor; cyanColor;yellowColor;magentaColor; orangeColor;purpleColor;brownColor; clearColor; )
自定义颜色:
UIColor *newColor = [[UIColor alloc] initWithRed:(float) green:(float) blue:(float) alpha:(float)]; 0.0~1.0
iphone开发笔记(-)退回输入键盘: - (BOOL) textFieldShouldReturn:(id)textField{ [textField resignFirstResponder]; } CGRect CGRect frame = CGRectMake (origin...
iphone开发笔记和技巧_计算机软件及应用_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 iphone开发笔记和技巧_计算机软件及应用_IT/计算机_专业资料。...
学习iphone开发的笔记,很实用学习iphone开发的笔记,很实用隐藏>> iphone 开发笔记退回输入键盘 - (BOOL)textFieldShouldReturn:(id)textField{ [textField resignFirs...
iPhone开发笔记iPhone开发笔记隐藏>> //---视图跳转 视图跳转--- 视图跳转 --- con=[[MyViewController initWithNibName:@"MyViewController" bundle:nil]; [...
gexin iphone开发笔记_IT/计算机_专业资料。iphone 开发文档MobileSubStrate使用说明 首先iphone上安装mobilesubstrate库版本参考示例代码,编写hook工程,编程成dylib形式部...
iphone开发 各种动画笔记_IT/计算机_专业资料。iphone 开发 各种动画 iphone 中存在很多好看的动画效果,用于页面的切换等。其中某些是 apple 私有的,据说 私有的无法...
123小说吧 看小说到123小说吧 WWW.123XSB.COM iPhone 程式开发简略笔记2010-11-23 12:09iPhone 手持设备软体开发笔记 一、熟悉objective-c 1 objective-c 与 c...
iPhone笔记-Object-c基础_IT/计算机_专业资料。个人收集的虽然不全iPhone 开发笔记 Object-c. 0.1 指令,包含文件#import 指令. #import “class.h” @implementa...
iphone开发书籍学习笔记_IT/计算机_专业资料。第一章 iPhone 开发创意火花集 来源于:深圳大学外文图书馆 TN929.53-39 南馆 3 楼 24 排 218 架 139.ME 编著...
热门文档