摘要: NSRange的定义typedefstruct_NSRange{NSUIntegerlocation;NSUIntegerlength;}NSRange;NSRange是一个结构体,其中location是一个以0为开始的index,length是表示对象的长度。他们都是NSUInteger类型。而NSUInteger类型的定义如下:#if __LP64__ || TARGET_OS_EMBEDDED || TARGET_OS_IPHONE || TARGET_OS_WIN32 || NS_BUILD_32_LIKE_64typedefunsignedlongNSUInteger;#elsety 阅读全文
posted @ 2012-10-18 08:59 不曾拥有 阅读(369) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-10-18 08:57 不曾拥有 阅读(2) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2012-10-17 22:17 不曾拥有 阅读(1) 评论(0) 推荐(0) 编辑
摘要: [cell setSelectionStyle:UITableViewCellSelectionStyleNone]; 阅读全文
posted @ 2012-10-17 20:38 不曾拥有 阅读(541) 评论(0) 推荐(0) 编辑
摘要: 在tableView初始化的时候 UIView *v = [[UIViewalloc] initWithFrame:CGRectZero]; [self.myTableViewsetTableFooterView:v];就可以了 阅读全文
posted @ 2012-10-15 09:51 不曾拥有 阅读(8500) 评论(0) 推荐(0) 编辑
摘要: UIActionSheet最后一个按钮没响应,一般是cancelButton,要稍微向上偏移一点才可以。不过这不是常态,几乎没多少人碰到这个问题,这是在特定情况下才会发生,这个场景就是试用了UITabBar的时候才有。参考:http://stackoverflow.com/questions/2096852/iphone-weird-bug-between-uiactionsheet-and-uitabbar解决办法: UIActionSheet *action = [[UIActionSheet alloc] initWithTitle:@"您是否拨打" ... 阅读全文
posted @ 2012-10-13 13:35 不曾拥有 阅读(1188) 评论(0) 推荐(0) 编辑
摘要: 转自梦维http://www.dreamingwish.com/dream-2011/apples-third-party-development-libraries-asihttprequest.html第三方苹果开发库之ASIHTTPRequest发布者: Seven's-2011/10/16-分类:梦印象ASIHttpRequest库简介、配置和安装ASIHttpRequest-创建和执行requestASIHttpRequest-发送数据ASIHTTPRequest-下载数据ASIHTTPRequest-进度追踪ASIHTTPRequest-身份验证ASIHTTPRequest 阅读全文
posted @ 2012-10-07 12:43 不曾拥有 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 自定义的步骤比较简单 最后到了写代码 引用自定义的cell的时候static NSString *CellIdentifier = @"DownloadCell"; static BOOL nibsRegistered = NO; if (!nibsRegistered) { UINib *nib = [UINib nibWithNibName:@"DownloadTableCell" bundle:nil]; [tableView registerNib:nib forCellReuseIdentifier:CellIdentifier]; ... 阅读全文
posted @ 2012-10-05 20:50 不曾拥有 阅读(8425) 评论(1) 推荐(0) 编辑
摘要: 转自http://blog.sina.com.cn/s/blog_a568ec6b01011zbx.html1 遵守uitextviewdelegate2-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString*)text{if ([text isEqualToString:@"\n"]) {[textView resignFirstResponder];return NO;}return YES;}1UITextFieldD 阅读全文
posted @ 2012-09-24 19:36 不曾拥有 阅读(1352) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.ofcdn.net/ch_soft/article/details/6948119-(void)registerForKeyboardNotifications{//添加自己做为观察者,以获取键盘显示时的通知[[NSNotificationCenterdefaultCenter]addObserver:selfselector:@selector(keyboardWasShown:)name:UIKeyboardDidShowNotificationobject:nil];//添加自己做为观察者,以获取键盘隐藏时的通知[[NSNotificationCente 阅读全文
posted @ 2012-09-21 19:19 不曾拥有 阅读(237) 评论(0) 推荐(0) 编辑