push vs present | | present | push | | --- | --- | --- | | 전개방향 | 세로 | 가로 | | 돌아가기 | dismiss | pop | | 메소드 | UIViewController | UINavigationControll
override func layoutSubviews() UIView 클래스 메서드 중 하나로, 뷰가 그려지는 시점에서 자동으로 호출된다. 뷰의 서브뷰를 배치하거나 뷰의 크기나 위치를 조정할 때 사용된다. override init(frame: CGRect) UIVi
UIBarButton이 원하는 아이콘으로 안나오고, 검정색으로 나옴 해결방법 UIBarButtonItem에 이미지를 추가할 때 이미지가 검정색으로 표시되는 경우, 이는 일반적으로 이미지의 배경이 투명하지 않은 경우 발생한다. 이 경우 이미지를 로드 할 때 배경을
1. PhotoCollectionViewCell 상태에 따라 변화값을 준다. 2. PhotoViewController 기본 모드, 선택모드 나누어 로직을 구현한다. 3. Buttons 구현 선택버튼 추가버튼 취소버튼 (선택버튼이 클릭되면, 취소버튼이 나오도
UIBarButton으로 구현하니 버튼 간 간격을 좁히기 힘들었다. UIBarButton은 자체적으로 간격을 조정하기 때문 따라서 UIButton을 커스텀으로 구현하니, 내가 원하는 정도의 간격을 조정할 수 있었다. >
나는 particularView 라는 UIView 안에 collectionView와 tagsCollectionView 서로 다른 collectionView를 가지고 있었다. 따라서 각각 tag를 달아주었다. 각자 collectionView에 원하는 코드를 넣어주면 된다.
NavigationBar 글자의 색상이 아니라, 배경의 색상을 바꾸고 싶은데 .. 뭔 난리를 쳐도 안됨 이것도 안됨 .. (꒦ິㅁ꒦ິ) 💫 UINavigationBarAppearance 얏호 성공 ~! 그런데 저 선같은 그림자가 너무 거슬린다 . . . 💥
둘 다 뷰의 내부 컨텐츠를 잘라내는 역할을 한다. 그러나 사용되는 위치와 동작 방식에 약간의 차이가 있다..UIView 클래스에 속하는 속성해당 뷰의 서브뷰가 뷰의 경계를 벗어나는 부분을 잘라낸다.즉, 뷰의 경계 내부에서만 서브뷰가 보이게 된다. 그러므로, clipsT
UIButton이 Label의 글자 크기에 맞추어 크기를 지정해 주었는데, 너무 딱 달라붙어서 양쪽으로 16정도 여백을 주고싶었다.contentEdgeInsets 속성을 사용하여 titleLabel의 양쪽 여백을 설정하였다.원하는대로 여백은 나왔는데, 내가 UIFont