Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liberalisman committed Aug 9, 2018
1 parent f47f15d commit 9296bce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@
- 9.说一下 `UIView` 的生命周期?- [链接](https://github.com/liberalisman/iOS-InterviewQuestion-collection/blob/master/UIKit/9.第九题.md)
- 10.`UIViewController` 的生命周期?- [链接](https://github.com/liberalisman/iOS-InterviewQuestion-collection/blob/master/UIKit/10.第十题.md)
- 11.如何以通用的方法找到当前显示的`ViewController`? - [链接](https://github.com/liberalisman/iOS-InterviewQuestion-collection/blob/master/UIKit/11.第十一题.md)
- 12.`setNeedsDisplay``layoutIfNeeded` 两者是什么关系?- [链接](https://github.com/liberalisman/iOS-InterviewQuestion-collection/blob/master/UIKit/12.第十二题.md)

## Foundation
- 1.`nil``NIL``NSNULL` 有什么区别?- [链接](https://github.com/liberalisman/iOS-InterviewQuestion-collection/blob/master/Foundation/1.第一题.md)
Expand Down
8 changes: 8 additions & 0 deletions UIKit/12.第十二题.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## 12.`setNeedsDisplay``layoutIfNeeded` 两者是什么关系?


`setNeedsDisplay` 是给当前的视图做了标记。

`layoutIfNeeded` 查找是否有标记,如果有标记及立刻刷新。

只有这二者合起来使用,才会起到立刻刷新的效果。

0 comments on commit 9296bce

Please sign in to comment.