Adding CIFilter to CALayer under Mavericks?

前端 未结 1 1069
时光说笑
时光说笑 2020-12-15 05:03

so this is the standard way of adding filter to a layer:

NSView *view = self.window.contentView;
view.wantsLayer = YES;
CATextLayer *textLayer = [CATextLayer         


        
相关标签:
1条回答
  • 2020-12-15 05:46

    Figured it out, Apple decided to change this and require a new flag for no reason

    progressIndicator.layerUsesCoreImageFilters = YES;
    
    0 讨论(0)
提交回复
热议问题