摘要: 用于UIDatepicker+(NSDate*) convertDateFromString:(NSString*)uiDate{ NSDateFormatter *formatter = [[NSDateFormatter alloc] init] ; [formatter setDateForm... 阅读全文
posted @ 2015-04-17 22:40 liqiantu 阅读(113) 评论(0) 推荐(0)
摘要: UIpickerView的可重用 1 - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *... 阅读全文
posted @ 2015-04-17 20:48 liqiantu 阅读(126) 评论(0) 推荐(0)
摘要: 一.UIPickerView1.UIPickerView的常见属性// 数据源(用来告诉UIPickerView有多少列多少行)@property(nonatomic,assign) id dataSource;// 代理(用来告诉UIPickerView每1列的每1行显示什么内容,监听UIPick... 阅读全文
posted @ 2015-04-17 14:18 liqiantu 阅读(226) 评论(0) 推荐(0)
摘要: 1.文本size的计算方法1 NSDictionary *dict = @{NSFontAttributeName: NJTextFont};2 CGSize maxSize = CGSizeMake(200, MAXFLOAT);3 CGSize textSize = [_mes... 阅读全文
posted @ 2015-04-15 21:34 liqiantu 阅读(113) 评论(0) 推荐(0)
摘要: 1 // 3.1 判断代理是否实现了协议方法2 if ([self.delegate respondsToSelector:@selector(tgFooterViewDidDownloadButtonClick:)]) {3 [self.delegate tgFooterV... 阅读全文
posted @ 2015-04-10 15:54 liqiantu 阅读(888) 评论(0) 推荐(0)
摘要: 默认的表格样式通常不能满足正常的开发需要解决方法 —— 自定义Cell1> XIB(团购)2> 纯代码(微博)3> StoryBoardXIB的定义步骤-----------------------------------------------1> 新建HMTgCell.xib2> 拽一个需要自定... 阅读全文
posted @ 2015-04-10 07:43 liqiantu 阅读(262) 评论(0) 推荐(0)
摘要: 1 // 2 // HMViewController.m 3 // 06-表格的修改 4 // 5 // Created by apple on 14-8-19. 6 // Copyright (c) 2014年 itcast. All rights reserved. 7 ... 阅读全文
posted @ 2015-04-09 14:58 liqiantu 阅读(368) 评论(0) 推荐(0)
摘要: 1 /** 2 UITableViewCellStyleDefault, 默认类型 标题+可选图像 3 UITableViewCellStyleValue1, 标题+明细+图像 4 UITableViewCellStyleValue2, 不显示图像,标题+明细 5 UITa... 阅读全文
posted @ 2015-04-07 15:23 liqiantu 阅读(187) 评论(0) 推荐(0)
摘要: NSTimer准确吗?如果不准确,怎么办?通常用来有一点时间跨度的周期性事件的处理! CDADisplayLink 1 // 2 // HMViewController.m 3 // 08-倒计时 4 // 5 // Created by apple on 14-8-18. 6 // Cop... 阅读全文
posted @ 2015-04-05 01:07 liqiantu 阅读(313) 评论(0) 推荐(0)
摘要: 控件交互情况不能够交互的alpha <= 0.01hidden = YESuserInteraction = NO父视图不允许交互,也不能交互在父视图可见范围内,可以交互,范围之外不能交互 阅读全文
posted @ 2015-04-04 00:36 liqiantu 阅读(131) 评论(0) 推荐(0)