iOS小技巧

UIView父窗口 透明 子窗口不继承透明:

[super setBackgroundColor:[[UIColor blackColor] colorWithAlphaComponent:0]];

UIButton标题左对齐

Btn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
Btn.contentEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);(这个地方是和左边保持距离10)


你可能感兴趣的:(iOS小技巧)