cannot set UIEdgeInsets of table View in swift 2.0 xcode 7 beta

1.1k Views Asked by At

I am trying to set UIEdgetInsets of TableView in Xcode7 beta with swift 2.0 here is my codeenter image description here

I keep getting this error while setting UIEdgeInsets enter image description here

1

There are 1 best solutions below

0
On

UIEdgeInsets takes as arguments either 4 CGFloats or 4 ints, you have provided it with an unknown type CFloat and 3 ints hence swift doesn't have an initialiser for that. Adjusting CFloat to CGFloat should solve the problem