ios - UITableView ScrollView not going to top of frame -


i setting uitableview frame below view on y-axis. not want uitableview go under view higher on y axis, uinavigationbar. in image scroll indicators @ top. enter image description here

but can see inset not @ top of tableview. assuming because uitableview used @ top of uinavigationbar , scrollview insets adjusted accordingly, don't want that. i've tried setting following to uiedgeinsetmake(0,0,0,0), nothing.

tableview.scrollindicatorinsets

tableview.contentinset

tableview.contentoffset (to cgpointmake(0,0))

i remember seeing in ios 7 tech talks this, i've searched through them past little bit , haven't found it.

thanks!!

    tableview = [[uitableview alloc] initwithframe:cgrectmake(0, 0, 0, 0) style:uitableviewstylegrouped];     tableview.translatesautoresizingmaskintoconstraints = no;     tableview.delegate = self;     tableview.datasource = self; 

@"v:|-(navbarheight)-[otherview]-(0)-[tableview]-(0)-|"

could try uncheck properties of viewcontroller mentioned in screenshot according need. hope might you,

enter image description here


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -