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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -