UIButton을 가지고 있는데, imageView를 왼쪽으로 정렬하고 싶습니다. 시도했을 때 : self.cancelButton.imageView.contentMode = UIViewContentModeLeft;UIViewContentMode 대 UIControlContentHorizontalAlignment
여전히 센터 (UIViewContentModeCenter)에서 온다 이미지 뷰로를 작동하지 않는 것
하지만 난 를 사용할 때 self.cancelButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
이미지 뷰를 완벽하게 정렬합니다. UIViewContentModeLeft도 작동해야하는 이유는 무엇입니까?