Grouped uitableview with shadow

前端 未结 3 1324
面向向阳花
面向向阳花 2020-12-09 07:11

Any ideas how to show a shadow around the grouped uitableview\'s border?(around all border at top, bottom, sides as well as around rounded corners of sections).

I nee

3条回答
  •  情歌与酒
    2020-12-09 07:48

    In cellForRowAtIndexPath: function:

    // drop shadow
    cell.layer.shadowOpacity = 1.0;
    cell.layer.shadowRadius = 1.7;
    cell.layer.shadowColor = [UIColor blackColor].CGColor;
    cell.layer.shadowOffset = CGSizeMake(0.0, 0.0);
    

提交回复
热议问题