
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)을 찾아보니 최근에 발생한 문제점인지 싶기도 하다.

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

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
- XCTest
- CRAWL
- 네트워킹
- 클린 아키텍처
- 유즈케이스
- Realm
- http/1.1
- Kotlin
- dismiss
- IntrinsicContentSize
- 웹모바일
- collectionViewCell
- equaltosuperview
- 부스트캠프
- Info.plist
- Clean Architecture
- http/1
- KeyChain
- 회고
- 2023년
- CollectionView
- 오토레이아웃
- 2024년
- UITest
- IOS
- BeautifulSoup
- swift
- 스위프트
- snapkit
- Autolayout
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |