preferredMaxLayoutWidth preferredMaxLayoutWidth 는 multiline label 일 때 영향을 주는 property 로 Label 의 Width 가 42 이상 늘어나지 못함을 명시적으로 Set 할 수 있다. 이상 이므로 글자가 더 들어갈 공간이 없으면 width 가 42 보다 적게 들어갈 수 있다. (Ex. width = 40.5) multiline label 이 아닌경우 아무런 영향을 미치지 못한다. preferredMaxLayoutWidth 를 설정한 채로 Label 에 Text 를 set 하면 intrinsic content size 가 실제 사이즈처럼 나온다.sizeThatFits 와 비교했을 때 intrinsicContentSize 가 월등히 좋다. (다만,..
iOS 개발/iOS
2016. 8. 22. 21:31
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 읽기 좋은 코드가 좋은 코드다
- dictionary
- CGImage
- Swift 3.0
- string
- CIImage
- NSManagedObjectModel
- coredata
- workerThread
- optional
- NSManagedObject
- EffectiveObjectiveC
- 꺼내먹어요
- ios
- Swift
- delegate
- Block
- AWS
- Swift3
- set
- docker
- applicationWillResignActive
- thread
- Arc
- Swfit
- RunLoop
- UIView
- HTTP
- Swift 3
- NSManagedObjectContext
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함