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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -