I've been trying to get the following effects on my text:

I want to get the white border around my text, I tried playing around with the following, but it didn't work out
self.name.layer.shadowOpacity = 5.0;   
    self.name.layer.shadowRadius = 0.0;
    self.name.layer.shadowColor = [UIColor whiteColor].CGColor;
    self.name.layer.shadowOffset = CGSizeMake(0.0, -5.0);
What 开发者_运维知识库is the easiest way to achieve this?
try the following
self.name.layer.shadowColor = [label.textColor CGColor];
self.name.layer.shadowOffset = CGSizeMake(0.0, 0.0);
self.name.layer.shadowOpacity = 0.5;
self.name.layer.shadowRadius = 20.0;
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论