个人笔记
光立524
从事iOS技术开发工作
展开
-
判断实时输入出现重复两次
个人笔记原创 2022-12-07 11:55:04 · 114 阅读 · 1 评论 -
FDTemplateLayoutCell的使用(不等高tableview)
不等高tableview原创 2022-09-14 16:29:43 · 226 阅读 · 0 评论 -
Swift队列组接口请求
class RecommendViewModel: NSObject { //懒加载 lazy var anthorGroups:[AnthorGroup] = [AnthorGroup]() //热门 private lazy var hotGroup : AnthorGroup = AnthorGroup() //颜值 private lazy var prettyGroup : AnthorGroup = AnthorGroup() //定义参数 let原创 2022-07-08 10:30:20 · 410 阅读 · 0 评论 -
iOS笔记(常用的一些知识点)
1.UISearchBar的使用UISearchBar *searchBar=[[UISearchBar alloc]initWithFrame:CGRectZero];searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 40, self.view.bounds.size.width, 45)];searchBar.delegate = self;searchBar.showsCancelButton =原创 2015-05-05 14:22:20 · 690 阅读 · 0 评论 -
tableview分组样式每组section之间距离的调整
1.默认tableview分组样式,每组section有额外头部和尾部间距,如果每组之间的间距一致,可以调整tableview的两个属性sectionHeaderHeight和sectionFooterHeight2.当UITableView的style为UITableViewStyleGrouped时,section之间默认的距离往往不是我们想要的。那怎么设置呢?我们知道每个section都...原创 2019-06-29 14:21:40 · 784 阅读 · 0 评论