iOS: Using UIView's 'drawRect:' vs. its layer's delegate 'drawLayer:inContext:' 나는 하위 클래스인 수업이 있습니다.UIView. 뷰 내부에 있는 것을 구현하여 그릴 수도 있습니다.drawRect방법 또는 구현을 통해drawLayer:inContext:이것은 의 대리인 방법입니다.CALayer. I have two questions: How to decide which approach to use? Is there a use case for each one? 구현할 경우drawLayer:inContext:, 라고 합니다.drawRect적어도 브레이크 포인트를 두는 것으로 알 수 있는 한), 비록 내가 내 견해를 다음과 같이 부여하지 않더라도...