拖拉控件TableView关系如下:并且要在cellForRow方法里面添加如下代码:-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ Firs...
分类:
其他好文 时间:
2015-12-11 09:54:10
阅读次数:
115
---恢复内容开始---主要是通过两个代理方法:- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { if ([[self.selectArray...
分类:
其他好文 时间:
2015-12-10 19:03:14
阅读次数:
153
添加这一句 [tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:indentifier]; 加入到初始化tableview时UITableViewCell *cell = [tableView dequeue...
分类:
其他好文 时间:
2015-11-28 18:07:11
阅读次数:
166
效果图:代码:图片选择器前面的tablvew里的东西- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{ // 图片选择器
UIImagePickerController *imgPC = [[UIImagePickerController alloc]...
分类:
微信 时间:
2015-11-27 17:46:01
阅读次数:
361
NSDictionary *attributes = @{NSFontAttributeName: [UIFont fontWithName:@"HelveticaNeue" size:14.0f]};CGSize size = [[[array objectAtIndex:indexPath.ro...
分类:
其他好文 时间:
2015-11-19 18:40:04
阅读次数:
143
-(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(NSIndexPath*)indexPath{returnYES;}-(void)tableView:(UITableView*)tableViewcommitEditing...
分类:
其他好文 时间:
2015-11-19 16:17:54
阅读次数:
114
1. 通过叫Point获取 CGPoint correctedPoint = [textField convertPoint:textField.bounds.origin toView:self.tableView]; NSIndexPath *indexPath = [self.table...
分类:
其他好文 时间:
2015-11-14 14:55:34
阅读次数:
150
效果图常见问题及解决方法图片重复下载将内存保存在内存或沙盒中。若下载的图片量较大,则会出现UI界面不流畅的现象在子线程中执行下载操作,然后回到主线程成中进行UI界面的刷新。由于cell的循环利用造成的图片显示错乱问题指定刷新表格的indexPath行。subTitle类型的cell,无法显示图片su...
分类:
其他好文 时间:
2015-11-13 14:44:13
阅读次数:
324
问题代码:[self.assetsArray objectAtIndex:indexPath.row]问题解决思路:这里
分类:
其他好文 时间:
2015-11-10 16:04:09
阅读次数:
712
之前看58同城APP有一个页面中Cell依次从右向左移动,今天试着做了下。在做的过程中也遇到了几个小的问题,也算是注意点吧。1.Cell出现时每个Cell的动画时间一样,导致没有依次移动的效果。根据IndexPath来设置Cell动画时间,担心时间增大时最后面的cell会出现的很慢,想着让index...
分类:
其他好文 时间:
2015-11-09 12:36:33
阅读次数:
232