When I scroll, I cant roll to the end of UIView.
My UIScrollView have 450 of height and the UIView inside scrollView 800 of height. The problem is what the scrollView cannot reach the end of the UIView... the scroll only down to a point and does not show more content of UIView. (I use storyboard)
Here is my code for start the scrollView and UIView:
[super viewDidLoad];
[scrollView setBackgroundColor:[UIColor blackColor]];
[scrollView setCanCancelContentTouches:NO];
scrollView.clipsToBounds = YES;
scrollView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
[scrollView addSubview:content];
//NSLog(@" %f %f",content.frame.size.width,content.frame.size.height);
[scrollView setContentSize:CGSizeMake(content.frame.size.width, content.frame.size.height )];
//NSLog(@" %f %f",scrollView.frame.size.width,scrollView.frame.size.height );
[scrollView setScrollEnabled:YES];
Any help on this issue is appreciated. (Sorry for my bad eng :( )
Thanks.
contentview? (content.frame.origin.x / y). Maybe they are not 0,0 in that case you have to account for that in your[scrollView setContentSize]- Mindaugas