-(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{ return UITableViewCellEdit...
分类:
移动开发 时间:
2014-08-22 10:36:05
阅读次数:
246
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell= [tableView
cellForRowAtIndexPath:indexPath]; // 获取cell
对象
UILabel *na...
分类:
移动开发 时间:
2014-08-19 11:03:04
阅读次数:
224
今天遇见过这个问题 以前都没这方面需求所以没有遇见
今天遇见了 网上查了 没有查到 好吧 只能说自己的问题
但是 还好kai哥到 一句话就解决了 !
就是在- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath中反选回来
如下代码:
- (vo...
分类:
其他好文 时间:
2014-08-13 22:36:27
阅读次数:
202
iOS开发拓展篇—音频处理(音乐播放器3)说明:这篇文章主要介绍音频工具类和播放工具类的封装。一、控制器间数据传递1.两个控制器之间数据的传递第一种方法:self.parentViewController.music=self.music[indexPath.row];不能满足第二种做法:把整个数组...
分类:
移动开发 时间:
2014-08-13 22:15:07
阅读次数:
361
设置cell高度- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ NoticeMessage* msg = [arrayNoticeMessage obje....
分类:
移动开发 时间:
2014-08-05 13:25:09
阅读次数:
240
-(void)tableView:(UITableView *)tableViewdidSelectRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView deselectRowAtIndexPath:indexPath a...
分类:
其他好文 时间:
2014-08-04 20:56:37
阅读次数:
283
-(void)tableView:(UITableView *)tableViewdidSelectRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView deselectRowAtIndexPath:indexPath ...
分类:
其他好文 时间:
2014-08-02 15:15:03
阅读次数:
142
在做tableView的时候,我们有时候需要根据cell的高度动态来调整,最近在网上看到一段代码不错,跟大家Share一下。
在
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath
*)indexPath{
类中获取cell的高度:
CGSize bo...
分类:
移动开发 时间:
2014-07-27 23:42:29
阅读次数:
421
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath
*)indexPath
{
return 3;
}
UITableViewC...
分类:
其他好文 时间:
2014-07-17 17:07:18
阅读次数:
207
解决以下错误:*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier Cell - must...
分类:
其他好文 时间:
2014-07-11 18:09:09
阅读次数:
206