https://medium.com/better-programming/swift-3-creating-a-custom-view-from-a-xib-ecdfe5b3a960 Swift — Creating a Custom View From a XIB (Updated for Swift 5) How to create a custom view from a XIB using Swift medium.com 뒤에 뷰 사이즈는 중요하지 않다, ( 아마 반영되지 않는다는 뜻인듯)
https://blog.goodgods.com/402
보통 버튼 코드로 만들 때 이렇게 할텐데, 오늘 처음 안 부분!! 1. myButton.translateAutoresizingMaskIntoConstraints = false로 꼭 해줘야한다! true이면 frame 설정이 되고, false이면 오토레이아웃 설정이 된다는데 솔직히 뭔소린지는 잘 모르겠다 ㅠㅠ 2. 코드로 만들어진 객체는 기본적으로 크기, 위치, constraint값 설정 안되어있으면 보이지 않는다. 그러므로 꼭 constraint 설정을 더해줘야 한다. 3. centerYAnchor대신 safeAreaLayoutGuide를 쓰면 더 좋다>_
command + 왼쪽키, 오른쪽키 하면 좌우로 회전 가능해진다!!
UIScreen.main.bounds.width == 320
스토리보드 > lines에서 설정 가능 하다 ㅠㅠ 첨알,,
https://stackoverflow.com/questions/35764558/how-to-draw-a-1px-line-in-storyboard How to draw a 1px line in storyBoard? As we know, the table view separator is so thin and beautiful. Sometimes we have to build some separator line in storyboard or nib, the min number is 1, but actually the line appears much thicker t... stackoverflow.com ㅇㅣ렇게 똑똑한 방법이 있다니........>!
Option + B 까먹지말자