tableView
码农四季在辛劳
这个作者很懒,什么都没留下…
展开
-
iOS学习笔记之UI-UISearchController-And-UITableView
//前言:从java转到iOS各种心酸苦辣,这里全都是坑阿//今天学到表视图与搜索框,觉得有必要与大家分享一下,这个小demo是 纯手写没有storyboard入口,是调用window创建的controller- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDicti原创 2016-03-31 21:17:36 · 400 阅读 · 0 评论 -
iOS学习笔记之UITableView之右侧索引
今天做的小demo是实现类似于咱们iPhone上通讯录中的索引,非常简单,大家可以参考一下,有什么不对的地方还请指出! 索引要实现的方法- (NSArray )sectionIndexTitlesForTableView:(UITableView )tableView **plist文件** #import "ViewController.h"//标识符#define MARK @原创 2016-04-01 11:50:11 · 792 阅读 · 0 评论 -
iOS学习笔记之TableViewCell右侧滑动多项操作
不得不说apple太机智,让我们编程的时候变的方便简洁 好了言归正传,其实右侧滑动多项操作我们只需要实现delegate协议中的- (NSArray<UITableViewRowAction *> *)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath 方法就好了,它是返回原创 2016-04-02 19:58:22 · 843 阅读 · 0 评论 -
UITableViewCell根据内容自动高度
先记着个属性吧,知道就行:uitableview有个属性值 separatorStyle 可用来去掉cell间的白线:tableView.separatorStyle = UITableViewCellSeparatorStyleNone; //总共有三个值,可以试下有空转载自:http://aclyyx.iteye.com/blog/1634726啰嗦几句:这里主要是通过NSString的si转载 2016-04-06 14:44:16 · 308 阅读 · 0 评论