摘要: 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 阅读(935) 评论(0) 推荐(0) 编辑