THTinderNavigationController icon indicating copy to clipboard operation
THTinderNavigationController copied to clipboard

Tapping on a page vs Swiping shifts views up slightly

Open komocode opened this issue 10 years ago • 3 comments

When I tap on an icon to move to a page, this happens to the view: image1

But when I swipe to switch pages, the view returns back to normal image2

komocode avatar Feb 15 '15 10:02 komocode

I have had this issue also and it was fixed (may be a loose term, it could be more of a hack but still) by a guy I work with.

Replace the scrollViewDidScroll method with this...

  • (void)scrollViewDidScroll:(UIScrollView *)scrollView { CGPoint point = CGPointMake(scrollView.contentOffset.x, -20); [scrollView setContentOffset:point]; self.paggingNavbar.contentOffset = point; }

it fixes the issue

ldutton241 avatar Feb 25 '15 16:02 ldutton241

@ldutton241 this does not solve . If we have a tableviewcontroller on the view. 20 px get cut at the bottom . @komocode Can you please help resolve this

Ankish avatar Apr 29 '15 12:04 Ankish

I fixed by adding an inset on top for UITableView and collection view.

[self.mTableView  setContentInset:UIEdgeInsetsMake(20, 0, 0, 0)];

Ankish avatar May 07 '15 12:05 Ankish