TIL_220611

애드·2022년 6월 11일

TIL

목록 보기
6/26

토이프로젝트 도중 어쩌다 보니 메인 뷰컨트롤러를 지웠더니 이런 에러가 떴음.
Could not find a storyboard named 'Main' in bundle
https://stackoverflow.com/questions/19240054/could-not-find-a-storyboard-named-main-in-bundle

스택오버플로우에 나와있는 대로 했는데 아래와 같은 에러가 또 떠서 보니 아예 info.plist의 해당 key value 값을 value만 지우는 게 아니라 전부 다 지웠어야 했음.
nvalid parameter not satisfying: [name length] > 0
https://developer.apple.com/forums/thread/127655

Label의 글자 alpha는 내버려 두고 배경 alpha만 바꾸고 싶을 때
self.mainLabel.backgroundColor = UIColor.systemGray.withAlphaComponent(0.4)

Label의 내용을 줄바꿈 하고 레이블 내에 표현 가능한 줄의 수 설정 따로 해줘야 반영됨.
mainLabel.numberOfLines = 2

코코아팟 설치 시 M1 맥북 오류
[!] Oh no, an error occurred. cocoapods install
해결법
1) sudo arch -x86_64 gem install ffi
2) arch -x86_64 pod install

profile
2차전직 개발자가 되자

0개의 댓글