Closed robmontesinos closed 8 years ago
Solved scrolling issue following http://stackoverflow.com/questions/2824435/uiscrollview-not-scrolling
Using storyboard with AutoLayout
- (void)viewDidLayoutSubviews {
[super viewDidLayoutSubviews];
// reset scrollView contentSize
CGFloat width = self.view.frame.size.width * 4; // number of pages
CGFloat height = self.view.frame.size.height;
self.introView.scrollView.contentSize = CGSizeMake(width, height);
}
Added a slight adjustment to allow for swipe to exit
- (void)viewDidLayoutSubviews {
[super viewDidLayoutSubviews];
// reset scrollView contentSize - accomodate for closeView
CGFloat width = rootView.frame.size.width * (1 + numOfSlides);
CGFloat height = rootView.frame.size.height;
_slideShowView.scrollView.contentSize = CGSizeMake(width, height);
}
Thanks for sharing, I will look into your solution.
Tried:
EAIntroPage *page1 = [EAIntroPage pageWithCustomViewFromNibNamed:@"IntroPage"];
page2.bgImage = [UIImage imageNamed:@"bg2"];
EAIntroPage *page2 = [EAIntroPage pageWithCustomViewFromNibNamed:@"IntroPage"];
page3.bgImage = [UIImage imageNamed:@"bg2"];
EAIntroPage *page3 = [EAIntroPage pageWithCustomViewFromNibNamed:@"IntroPage"];
page5.bgImage = [UIImage imageNamed:@"bg2"];
EAIntroView *intro = [[EAIntroView alloc] initWithFrame:rootView.bounds];
[intro setDelegate:self];
[intro setPages:@[page1,page2,page3]];
[intro showInView:rootView animateDuration:0.3];
And it works well for me. Please check out latest version and let me know if you still have any issues.
@ealeksandrov Hello this is the good and very usefull Demo for Intro Screen. so, First i wish to thank you. but i have no idea about.... when i scroll 4 page and in last page i want to redirect on specific Viewcontroller so.. please help me....
Just present EAIntroView over desired VC. After disappearing it will show your VC.
I've used this excellent library before but it is not working on this project - Xcode 7 iOS 8.4