diff --git a/src/TNCheckBox.m b/src/TNCheckBox.m index 86b0b2a..25832aa 100644 --- a/src/TNCheckBox.m +++ b/src/TNCheckBox.m @@ -58,6 +58,7 @@ - (void)createLabel { CGSize labelSize = CGSizeMake(labelRect.size.width, labelRect.size.height); self.lblButton = [[UIButton alloc] initWithFrame:CGRectMake(self.checkBox.frame.origin.x + self.checkBox.frame.size.width + self.data.labelMarginLeft, (self.checkBox.frame.size.height - labelSize.height) / 2, self.data.labelWidth ?: labelSize.width, self.data.labelHeight ?: labelSize.height)]; + self.lblButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; [self updateLabel]; [self addSubview:self.lblButton]; }