Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- uitableview
- MVVM
- ribs
- 스위프트
- Clean Code
- uiscrollview
- SWIFT
- UITextView
- 클린 코드
- RxCocoa
- map
- UICollectionView
- 애니메이션
- 리펙토링
- ios
- Xcode
- Human interface guide
- collectionview
- clean architecture
- combine
- 리팩토링
- Refactoring
- HIG
- swiftUI
- swift documentation
- 리펙터링
- rxswift
- Protocol
- Observable
- tableView
Archives
- Today
- Total
목록masksToBounds (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] clipsToBounds vs mastkToBounds
기능상 동일하며 bounds에 맞추어서, 내부 view요소가 잘릴것인지 설정 cornerRadius를 60으로 주고 글씨가 잘리는지 확인 myView.layer.cornerRadius = 60 true로 줄 경우 잘림 view.clipsToBounds = true // 또는 view.layer.masksToBounds = true false로 줄 경우 잘리지 않음 (default값) view.clipsToBounds = false // 또는 view.layer.masksToBounds = false 사용) 내부 뷰를 밖으로 튀어나오지 않게 하려면 true로 설정하여 사용하는것이 안전
iOS 기본 (swift)
2020. 11. 20. 00:22