Shadow or Border around a scrollview iphone

前端 未结 4 1864
谎友^
谎友^ 2021-01-05 06:19

i would like to draw a border / shadow around a uiscrollview, i know that i could get there with an additional view or scrollview but dont like the handling an drawbacks but

4条回答
  •  遥遥无期
    2021-01-05 06:28

    To get the CGColorRef from an UIColor you can also use this example:

    myView.layer.borderWidth = 2;
    myView.layer.borderColor = [UIColor blackColor].CGColor;
    

提交回复
热议问题