Make sure the button title does appear

This commit is contained in:
Andreas Linde 2013-08-30 19:13:25 +02:00
parent 5a030ada9b
commit 4408c60618

View File

@ -146,6 +146,10 @@
cr.origin.y = _customPadding.y;
cr.origin.x = self.superview.frame.size.width - cr.size.width - _customPadding.x * 2;
self.frame = cr;
NSLog(@"%@", NSStringFromCGRect(self.frame));
NSLog(@"%@", NSStringFromCGRect(self.titleLabel.frame));
NSLog(@"%@", [self.titleLabel.textColor description]);
NSLog(@"%@", [self.backgroundColor description]);
}
}
@ -207,6 +211,8 @@
[self.layer addSublayer:_inActiveBorderLayer];
[_inActiveBorderLayer setHidden:YES];
}
[self bringSubviewToFront:self.titleLabel];
}
return self;
}