iOS/iOS memo(27)
-
UITapGestureRecognizer랑 addtarget이 뭔차이지..(내일..다시..확인..)
요놈봐라..생긴거보니까 addtarget과 비슷한 역할을 하는것 같긴한데.. 왜왜 .. 왜때문에 UITapGestureRecognizer를 쓰나요? addtarget만 줄곧 써왔던 1인 참고) 변수이름이 addBtn이긴 하지만 UIButton이 아니고 uiImageView입니다. let tabGestureAdd = UITapGestureRecognizer(target: self, action: #selector(addContent)) addBtn.addGestureRecognizer(tabGestureAdd) addBtn.isUserInteractionEnabled = true 큰차이점 uiView를 터치했을때 이벤트를 주고 싶다 -> addGestureRecognizer uiButton을 터치했을때 이..
2022.02.23 -
iOS) stackView의 frame.width가 0.0으로 나올때 (feat. layoutIfNeeded())
https://stackoverflow.com/questions/62121352/why-view-frame-width-returns-zero Why view.frame.width returns zero? I created stackView and added three labels to it. Also I put these constraints let nameLabel = UILabel() //set .text, .mode and other for nameLabel let ellipsisLabel = UILabel() //set .text, .mode... stackoverflow.com 개발자 사는거 다 똑같..! 왜 내 width가 zero를 리턴하나요..! stackView안에 uiImage가 set..
2022.02.15 -
iOS) 특정 iPhone, iPad에서 tableView cell안에 있는 버튼이 클릭이 안될때..(feat. addtarget, lazy var, dellocation)
https://stackoverflow.com/questions/28894765/uibutton-action-in-table-view-cell UIButton action in table view cell I am trying to run an action for a button being pressed within a table view cell. The following code is in my table view controller class. The button has been described as "yes" in an outlet in my stackoverflow.com 테이블뷰 내부에 있는 테이블뷰 셀에, vertical stackView를 넣고 vertical stackView 내부에 l..
2022.02.14 -
iOS) 특정 label만 color와 폰트를 다르게 하고 싶을때
https://0urtrees.tistory.com/183 iOS UILabel 텍스트 특정범위 폰트크기, 색상 속성 부여하기 안녕하세요. 멍구입니다. 🤗 종종 iOS개발 간 UILabel 하나의 텍스트 특정범위에 폰트크기, 색상, 배경색상 등의 속성을 부여하고 싶을때가 생기는데요. 이럴때 부분적인 속성 설정을 위해서 라벨 0urtrees.tistory.com
2022.02.10 -
iOS) git과 github "잘" 사용하기(feat. Source tree)
인프런의 깃, 깃헙 강의를 보고 작성된 포스팅입니다. git 형상관리 시스템의 한 종류로, 언제든지 저장 시점으로 돌아갈 수 있다는 장점이 있다 github저장소 이용시 가장 기본이 되는 개념 세가지 commit 게임 세이브에 해당하는 행동 언제든지 커밋한 시점으로 되돌아갈 수 있음 저장을 원하는 파일들을 묶어서 커밋 명령을 수행하면된다 add(스테이지에 올린다) 위에서 커밋전에 저장을 원하는 파일들을 묶어서 해야한다라고 표현했는데 이 작업을 스테이지에 파일을 올린다 라고 합니다. (10개의 파일을 작업했는데 1번과 5번의 작업만 묶어서 커밋하고 싶다고 했을때, 1번과 5번을 스테이지에 올립니다. 그럼 이제 commit할 수 있는 상황이 됩니다-> stage에 파일을 올려야 그 파일들을 commit할 ..
2022.01.20 -
m1 맥북 Executable Not Found ,Xcode 에러로 고통받고있다면..!
https://developer.apple.com/forums/thread/697559 Executable Not Found ,Xcode | Apple Developer Forums Ah, that’s unfortunate that clearing build artifacts didn’t resolve the issue. Which Xcode version are you using? This could also be a bug in Xcode, so it might be worth filing a bug report on Feedback assistant. developer.apple.com
2022.01.17