[iOS] UIView layer로 뷰 그리기, 그림자
예시를 통해 빠르게 알아보겠습니다. let testView = UIView() view.addSubview(testView) testView.translatesAutoresizingMaskIntoConstraints = false NSLayoutConstraint.activate([ testView.widthAnchor.constraint(equalToConstant: 300), testView.heightAnchor.constraint(equalToConstant: 300), testView.centerXAnchor.constraint(equalTo: view.centerXAnchor), testView.centerYAnchor.constraint(equalTo: view.centerYAnchor) ]..
iOS
2021. 1. 29. 20:20
공지사항