THTinderNavigationController icon indicating copy to clipboard operation
THTinderNavigationController copied to clipboard

Minor issue on THTinderNavigationController.m

Open Eyesony opened this issue 10 years ago • 0 comments

  • (THTinderNavigationBar *)paggingNavbar { if (!_paggingNavbar) { _paggingNavbar = [[THTinderNavigationBar alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth(self.view.bounds), 64)]; ..... }

Here it will create _paggingNaviBar twice, reason: self.view will trigger 'viewdidload' then 'setupviews','reloaddata' before the instance assign to _paggingNavbar. And setupviews will create arrive this initiation again (viewdidload will run only once).

Probably use uiscreen width or sth, instead of self.view.bounds here.

Thank you for this nice controller. It's very useful to me

Eyesony avatar Nov 11 '14 14:11 Eyesony