options for insetY
antonioreyna opened this issue · 1 comments
I don't know if this is something useful or maybe there is another already done way to get it, but i saw when i add the tableview to the navigation controller, there is the offsetY 20 pixels, but when you scroll up you see how the tableview "cuts" in those 20 pixels, so i changed it to 0 and added this to the code:
self.tableView.contentInset = UIEdgeInsetsMake(20, 0, 0, 0);
so now when i scroll up i see the table cell behind the status bar info and not cut.
it would be great to add that functionality as an option or id there is a "correct" way to do this behavior with the current version of this class please tell me :D
thanks for sharing this amazing work.
Hi @antonioreyna
The 20 pixel 'cut' is by design, since using the contentInset
when the table has section headers leads to an unpleasant visual effect. When the table has no headers though, the inset that you suggest is the best solution, so I added a new option: AMOptionsContentInsetTop
. You can use it in conjunction with AMOptionsTableOffsetY
(set it to 0), to obtain your result.
Hope this helps