What would cause a tableview cell to remain highlighted after being touched? I click the cell and can see it stays highlighted as a detail view is pus...
分类:
其他好文 时间:
2014-07-12 00:07:16
阅读次数:
185
iOS开发项目篇—14点击标题按钮弹出菜单一、简单说明(1)简单实现点击标题按钮弹框,在箭头向上的时候,显示标题菜单把ImageView添加到谁的身上?三角形的箭头在导航栏上,因此不能添加到tableview上。分析图示:有两个两种方法可以考虑:(1)添加到导航控制器上,因为导航栏是在导航控制器上的...
分类:
移动开发 时间:
2014-07-11 19:38:52
阅读次数:
457
一、UItableView 编辑模式#pragma mark 要设置代理, 实现代理协议#pragma mark - 代理方法#pragma mark 只要实现了这个方法,就会实现排序功能- (void)tableView:(UITableView *)tableView moveRowAtInde...
分类:
其他好文 时间:
2014-07-09 17:07:00
阅读次数:
164
m_listView:textview在tableview上,同时需要修改tableview高度//注册观察者 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboarWillShow:) na...
分类:
其他好文 时间:
2014-07-09 14:56:17
阅读次数:
185
采用的EGORefreshTableHeaderView来实现:
在Controller上实现EGORefreshTableHeaderDelegate的delegate
@property(nonatomic)UITableView* tableView;
@property(nonatomic)NSMutableArray* data;
@property(nonatomic)EGORef...
分类:
移动开发 时间:
2014-07-08 21:32:07
阅读次数:
316
在UITableView初始化时加上以下代码即可:
self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
效果演示:...
分类:
移动开发 时间:
2014-07-08 20:24:33
阅读次数:
283
今天在测试过程中,出现了这样一个bug,分别有两种情景:
(前提是:app是基于UINavigationController构建的)
1、从Controller-A中push进来B。在B中点击返回,返回的界面为黑色一片。再做返回操作就crash了。
2、从Controller-A中push进入B,此时B中tableview出现错位现象,tableview被navigationbar覆盖了...
分类:
其他好文 时间:
2014-07-08 10:33:48
阅读次数:
218
1.对于TableView ,每个item的视图基本都是一样的。不同的只有数据。
IOS提供了一种缓存视图跟数据的方法。在 -UITableViewCell *) tableView:cellForRowAtIndexPath:
//创建一个用于缓存的标示
static NSString *ID=@"CellTable";
//先从缓存中取得UITableViewCell
...
分类:
移动开发 时间:
2014-07-06 12:14:30
阅读次数:
236
使 UITableViewStylePlain Style 的TableView header 不浮动,像Group Style 那样固定,跟随Tableview 滚动,而不会停在顶端。...
分类:
其他好文 时间:
2014-07-06 09:00:06
阅读次数:
154
UITableView本身自带了(增、删)编辑功能:
1.只要调用UITableView的编辑代码 就会进入编辑状态:
[self.tableView setEditing:!self.tableView.editing animated:YES];
2.进入编辑状态的UITableView会调用代理的
- (UITableViewCellEditingStyle) tableView:(...
分类:
移动开发 时间:
2014-07-06 08:18:44
阅读次数:
238