I want to make the label's backround full circle.
i searched and find out
numLabel.layer.masksToBounds = true
numLabel.layer.cornerRadius = numLabel.bounds.width / 2
on iphone it is fine on ipad, firsttime it is just a corner radius rectangle, when i move tableview up and down, in anotherwords, cell view gets out of the main view and gets back in, it becomes a fine circle.
i wonder, what is the mistake i am doing ?
edit : numLabel is inside TableViewCell / TableViewController / NavigationController / splitViewController and it has its own tableViewCell class. and that code is run From layoutsubviews() numlabel width and height is equal by contraints