![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/exwN9r/btrq7bvF1ep/2CKrKQQuggVgXloZnTdGu1/img.png)
sender의 button의 class를 UIButton에서 내가 커스텀에 사용한 RoundButton으로 변경도 해보고 했지만, 계속 nil만 리턴한 오류. guard let numberValue = sender.titleLabel?.text else { return } print(numberValue) 로 수정하니 해결되었다. 왜 sender.title(for:)로 작성하면 nil이 발생하는지 원인은 미상이다. 나와 같은 문제를 해결한 게시글(https://stackoverflow.com/questions/70145242/how-to-get-the-current-title-of-a-button-in-swift)을 찾아보니 최근에 발생한 문제점인지 싶기도 하다.
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/UhJJp/btrpz1Vczuz/beX6dxSUZyBksz2Ee3zdhK/img.png)
Xcode로 코딩하다 난데없이 나타난 Cannot jump from switch statement to this case label 오류. https://en.cppreference.com/w/cpp/language/switch 를 통해 알아보니 라고 한다. 즉 위 case: 문에서 init_statement를 작성한 경우, 아래 case: 문에서 x에대한 초기화 없이 x를 사용하기 때문에 오류가 난다고 이해했다. (잘못되었다면 지적 부탁드립니다.) 그래서 switch(1) { case 1: int x = 0; // initialization std::cout
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/BJDJC/btrmRQVHB4I/F2QhnKYHvQCx8OINxaETZ1/img.png)
IntrinsicContentSize The natural size for the receiving view, considering only properties of the view itself. = 뷰 자체 본질의 크기 UILabel, UIButton, UISwitch가 대표적 Contents 고유 사이즈 개념이 있는 것들이 있다. 크기가 결정되는 뷰이다. 이들은 다른 뷰들과의 제약에 의해 본래 컨텐츠 보다 늘어나거나(허깅으로 방지) 줄어들 수 있다(컴프레션 레지스터로방지). Content hugging 최대 크기에 대한 제한 = 이보다 작아질 수 있다. → 우선 순위 높은 뷰가 다른 뷰에 비해 작아진다. Compression resistance 최소 크기에 대한 제한 = 이보다 커질 수 있다. → 다..
- Total
- Today
- Yesterday
- collectionViewCell
- Clean Architecture
- equaltosuperview
- http/1
- IntrinsicContentSize
- 네트워킹
- 웹모바일
- 회고
- CRAWL
- 오토레이아웃
- Autolayout
- dismiss
- 클린 아키텍처
- 2023년
- CollectionView
- IOS
- Info.plist
- Kotlin
- 부스트캠프
- snapkit
- 2024년
- XCTest
- 스위프트
- 유즈케이스
- KeyChain
- BeautifulSoup
- http/1.1
- swift
- UITest
- Realm
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |