Is it possible to add a border style to a UITableView? (Not BorderColor/BorderWidth)

后端 未结 5 666
逝去的感伤
逝去的感伤 2020-12-29 15:40

Is it possible to add a border style to a UITableView?

Not just bordercolor and borderwidth.

For example a grooved border style?

5条回答
  •  孤独总比滥情好
    2020-12-29 16:08

    Try to this code may be helped you....

    Written on this code in your view did load methods and import the QuartzCore framework in the your .h file or .m file.

    [myTBL.layer setBorderWidth: 1.0];
    [myTBL.layer setCornerRadius:8.0f];
    [myTBL.layer setMasksToBounds:YES];
    [myTBL.layer setBorderColor:[[UIColor blackColor] CGColor]];
    

    Happy coding.....

提交回复
热议问题