@@ -74,26 +74,8 @@ @implementation QMUIDialogViewController
7474
7575- (void )didInitialize {
7676 [super didInitialize ];
77- self.cornerRadius = [QMUIDialogViewController appearance ].cornerRadius ;
78- self.dialogViewMargins = UIEdgeInsetsConcat ([QMUIDialogViewController appearance ].dialogViewMargins , SafeAreaInsetsConstantForDeviceWithNotch);
79- self.maximumContentViewWidth = [QMUIDialogViewController appearance ].maximumContentViewWidth ;
80- self.backgroundColor = [QMUIDialogViewController appearance ].backgroundColor ;
81- self.titleTintColor = [QMUIDialogViewController appearance ].titleTintColor ;
82- self.titleLabelFont = [QMUIDialogViewController appearance ].titleLabelFont ;
83- self.titleLabelTextColor = [QMUIDialogViewController appearance ].titleLabelTextColor ;
84- self.subTitleLabelFont = [QMUIDialogViewController appearance ].subTitleLabelFont ;
85- self.subTitleLabelTextColor = [QMUIDialogViewController appearance ].subTitleLabelTextColor ;
86- self.headerSeparatorColor = [QMUIDialogViewController appearance ].headerSeparatorColor ;
87- self.headerViewHeight = [QMUIDialogViewController appearance ].headerViewHeight ;
88- self.headerViewBackgroundColor = [QMUIDialogViewController appearance ].headerViewBackgroundColor ;
89- self.contentViewMargins = [QMUIDialogViewController appearance ].contentViewMargins ;
90- self.contentViewBackgroundColor = [QMUIDialogViewController appearance ].contentViewBackgroundColor ;
91- self.footerSeparatorColor = [QMUIDialogViewController appearance ].footerSeparatorColor ;
92- self.footerViewHeight = [QMUIDialogViewController appearance ].footerViewHeight ;
93- self.footerViewBackgroundColor = [QMUIDialogViewController appearance ].footerViewBackgroundColor ;
94- self.buttonBackgroundColor = [QMUIDialogViewController appearance ].buttonBackgroundColor ;
95- self.buttonTitleAttributes = [QMUIDialogViewController appearance ].buttonTitleAttributes ;
96- self.buttonHighlightedBackgroundColor = [QMUIDialogViewController appearance ].buttonHighlightedBackgroundColor ;
77+
78+ [self qmui_applyAppearance ];
9779
9880 _contentView = [[UIView alloc ] init ]; // 特地不使用setter,从而不要影响self.hasCustomContentView的默认值
9981 self.contentView .backgroundColor = self.contentViewBackgroundColor ;
@@ -464,8 +446,6 @@ @implementation QMUIDialogSelectionViewController
464446- (void )didInitialize {
465447 [super didInitialize ];
466448
467- [self qmui_applyAppearance ];
468-
469449 self.selectedItemIndex = QMUIDialogSelectionViewControllerSelectedItemIndexNone;
470450 self.selectedItemIndexes = [[NSMutableSet alloc ] init ];
471451
@@ -672,8 +652,6 @@ @implementation QMUIDialogTextFieldViewController
672652- (void )didInitialize {
673653 [super didInitialize ];
674654
675- [self qmui_applyAppearance ];
676-
677655 self.mutableTitleLabels = [[NSMutableArray alloc ] init ];
678656 self.mutableTextFields = [[NSMutableArray alloc ] init ];
679657 self.mutableSeparatorLayers = [[NSMutableArray alloc ] init ];
0 commit comments