Is it possible to access a UITableView's ScrollView In Code From A Nib?

后端 未结 3 769
遥遥无期
遥遥无期 2020-12-09 04:24

Right now I am creating a UITableView in a FlipsideView nib. I don\'t seem to be able to change the background of the table view from within interface builder. I can fix t

3条回答
  •  死守一世寂寞
    2020-12-09 05:04

    You can add a corner radius to any view's layer. It would look something like this:

    theTableView.layer.cornerRadius = 10.0f; // Or whatever radius you wanted to set
    

    I believe you'll need to link to the QuartzCore framework and import the QuartzCore.h header, too.

    This will round the corners of the table similar to how they appear in the flipside of Weather.app.

提交回复
热议问题