From 3f32dce734ac878f83b80d00d0e119286e256e3a Mon Sep 17 00:00:00 2001 From: Nenad VULIC Date: Thu, 20 Aug 2015 09:11:10 +0200 Subject: [PATCH] initialization with default menu selected instead 0 --- .../YSLContainerViewController.m | 16 +++++++++++++++- YSLContainerViewController/YSLScrollMenuView.h | 1 + YSLContainerViewController/YSLScrollMenuView.m | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/YSLContainerViewController/YSLContainerViewController.m b/YSLContainerViewController/YSLContainerViewController.m index d05cc78..70f7b6e 100644 --- a/YSLContainerViewController/YSLContainerViewController.m +++ b/YSLContainerViewController/YSLContainerViewController.m @@ -20,12 +20,21 @@ @interface YSLContainerViewController () self.scrollView.contentSize.width - (kYSLScrollMenuViewMargin + kYSLScrollMenuViewWidth)) { - return; + // return; } _indicatorView.frame = CGRectMake(indicatorX, _scrollView.frame.size.height - kYSLIndicatorHeight, kYSLScrollMenuViewWidth, kYSLIndicatorHeight); // NSLog(@"retio : %f",_indicatorView.frame.origin.x);