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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -