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.
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,
Comments
Post a Comment