Iphone How to make context background transparent?

前端 未结 1 1680
谎友^
谎友^ 2020-12-17 09:39
CALayer *sublayer = [CALayer layer];
/*sublayer.backgroundColor = [UIColor blueColor].CGColor;
sublayer.shadowOffset = CGSizeMake(0, 3);
sublayer.shadowRadius = 5.0;         


        
相关标签:
1条回答
  • 2020-12-17 09:48
    UIGraphicsBeginImageContextWithOptions(CGSizeMake(400, 400), NO, 1);
    

    Setting this argument to NO solves my problem.

    0 讨论(0)
提交回复
热议问题