ios - Changing the tableview's content inset -
i changing content insets in swift. want change bottom inset. code changing each inset.
let edgeinsets = uiedgeinsetsmake(0, 0, 0, 0) self.tableview.contentinset = edgeinsets self.tableview.scrollindicatorinsets = edgeinsets
i want change bottom inset , other insets should default insets. how can this?
the third parameter in uiedgeinsetsmake
function parameter sets bottom inset.
in case want let edgeinsets = uiedgeinsetsmake(0, 0, bottomvalue, 0)
.
however, because using swift, it's more "swifty" use uiedgeinsets(top: 0, left: 0, bottom: valueyouwant, right: 0)
Comments
Post a Comment