ShadowCornerView 1.0.0

ShadowCornerView 1.0.0

ShadowCornerView维护。



  • 李志强

ShadowCornerView

任何侧阴影和任何圆角视图。

使用示例

self.view.backgroundColor = [UIColor whiteColor]; UILabel * lb = [[UILabel alloc] init]; lb.text = @"slkdjfaksjdf"; lb.textAlignment = NSTextAlignmentCenter; lb.shadowCorner = ShadowBottom|CornerTopLeft|CornerBottomRight|CornerType8; lb.backgroundColor = [UIColor redColor]; lb.translatesAutoresizingMaskIntoConstraints = NO;

UIView * cornerView = [ShadowCornerView viewWithContentView:lb]; [self.view addSubview:cornerView];

[cornerView mas_makeConstraints:^(MASConstraintMaker *make) { make.centerY.equalTo(self.view.mas_centerY); make.centerX.equalTo(self.view.mas_centerX); make.width.equalTo(@(150)); make.height.equalTo(@(40)); }];