![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iOS 学习笔记
風悠陌墨
奔跑的蜗牛 杰
展开
-
打印时判断是否同一个控件
原创 2017-02-17 00:29:17 · 181 阅读 · 0 评论 -
UICollectionView 的研究之一 :简单使用
UICollectionView 是在 iOS6 之后引入的,用于展示集合视图,可实现多列表布局。简单的布局,系统flowLayout 即可满足需求,要实现复杂布局的话,需要自定义 UICollectionViewFlowLayout 来实现。初步实现给 collectionView 一个布局,这里采用的系统类来实现简单布局。UICollectionViewFlowLayout *flowLayo...原创 2018-04-13 10:26:28 · 200 阅读 · 0 评论 -
iOS 设备方向的获取
// 这个方法要在初始进入界面时才会生效,如果在使用的过程中旋转屏幕,依然还是之前的方向 UIInterfaceOrientation orientation = [UIApplicationsharedApplication].statusBarOrientation; if (orientation ==UIInterfaceOrientationLandscape原创 2018-01-12 18:06:15 · 2122 阅读 · 0 评论 -
TableView 性能优化之 Cell 的复用原理
// 每当有一个 Cell 进入视野范围,都会调用一次该方法- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {UITableViewCell *cell = [[UITableViewCellalloc]原创 2017-03-15 00:34:45 · 996 阅读 · 0 评论 -
设置app 的初始化页面 (storyboard)
采用 storyboard 编写程序,Xcode 默认main.storyboard 为初始化启动页面。当然,初始化页面并不唯一,可自身根据需要选择其他自己创建的 storyboard。创建 storyboard (快捷键:command+n)选择storyboard,点击next,命名,然后点击creat,就会创建出一个空的storyboard,这时的story原创 2017-02-15 21:33:10 · 3890 阅读 · 0 评论 -
app的执行
每个app 程序在执行的过程中,首先执行main 函数,再执行里面的 AppDelegate 类,再在AppDelegate 中找到要执行的类,以此类推。我们在阅读他人代码的过程中,也应找到该份代码的根本所在,然后逐层梳理。原创 2017-02-15 16:55:48 · 269 阅读 · 0 评论