摘要: MyEclipse注册码生成的结果如下Subscriber:woyaozhucemaSubscription Code:jLR8ZC-855556-61597456488515625 阅读全文
posted @ 2013-04-30 22:12 ccfzy 阅读(126) 评论(0) 推荐(0) 编辑
摘要: iphone_tableview 阅读全文
posted @ 2011-09-22 22:11 ccfzy 阅读(1856) 评论(0) 推荐(0) 编辑
摘要: UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; // Adjust the indicator so it is up a few pixels from the bottom of the alert indicator.center = CGPointMake(alert.bounds.size.width/2, alert.bounds.size... 阅读全文
posted @ 2011-08-21 22:36 ccfzy 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 转:http://www.opensoce.com/?p=1298退回输入键盘:- (BOOL) textFieldShouldReturn:(id)textField{ [textField resignFirstResponder];}CGRectCGRect frame = CGRectMake (origin.x, origin.y, size.width, size.height);矩形NSStringFromCGRect(someCG) 把CGRect结构转变为格式化字符串;CGRectFromString(aString) 由字符串恢复出矩形;CGRectInset(aR... 阅读全文
posted @ 2011-08-21 19:58 ccfzy 阅读(890) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.163.com/yonglike@yeah/blog/static/168299425201141743714116/1. stringWithFormat 用法: [NSString stringWithFormat:@"Hight: %d°%@ Low: %d°%@", [Temp],@"C",[lTemp],@"C"]; NSString to NSData:NSString* str= @"kilonet";NSData* data=[str dataUsin 阅读全文
posted @ 2011-08-21 17:59 ccfzy 阅读(1390) 评论(0) 推荐(0) 编辑
摘要: 1:self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(ids:)] autorelease];2:UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:@"反馈" style:UIBarButtonItemStyleP... 阅读全文
posted @ 2011-08-21 15:23 ccfzy 阅读(934) 评论(0) 推荐(0) 编辑
摘要: * assign: 简单赋值,不更改索引计数(Reference Counting)。* copy: 建立一个索引计数为1的对象,然后释放旧对象* retain:释放旧的对象,将旧对象的值赋予输入对象,再提高输入对象的索引计数为1* 使用assign: 对基础数据类型 (NSInteger)和C数据类型(int,float,double,char,等)* 使用copy: 对NSString* 使用retain: 对其他NSObject和其子类 copy是创建一个新对象,retain是创建一个指针,引用对象计数加1。1.readonly表示这个属性是只读的,就是只生成getter方法,不会生成s 阅读全文
posted @ 2011-06-27 23:58 ccfzy 阅读(635) 评论(0) 推荐(1) 编辑
摘要: java的基础理解的。@property 相当于在java中的接口中使用,替代get set方法,没有具体的方法操作。@synthesize 相当于在java中的类中使用,替代get set方法,替代的是有方法的操作部分。 阅读全文
posted @ 2011-06-27 21:25 ccfzy 阅读(233) 评论(0) 推荐(0) 编辑