At this time I have a very trivial issue with my UIScrollView which is within a UIViewController's UIView.
At the moment, I am using a xib file because I am putting lots of information inside the UIScrollView, there is too much code for me .... (lots of information, images , Blah blah blah) but all their steady.
This is the code I used to add UIScrollView to the UIViewController's UIView:
_scrollView = [[UIScrollView alloc] init]; _scrollView.delegate = self; _scrollView.scrollEnabled = Yes; _scrollView.showsVerticalScrollIndicator = Yes; _scrollView.contentSize = CGSizeMake (self.view.bounds.size.width, self.view.bounds.size.height * 7); [Self.view addSubview: _scrollView]; As you can see, the UIScrollView is big!
I have defined it as 7 times the size of the image size and the delicate method to set it. For UIViewController
Now, I'm able to scroll completely, but I'm unable to scroll through the contents of the entire UIScrollView, even if I set the content size in a huge amount! !!!
Am I doing wrong? : (
I also commented:
// scrollView = [[UIScrollView alloc] initWithFrame: CGRectMake (self.view.frame.origin.x, self See .frame.origin.y, self.view.bounds.size.width, 2389)] But when I code (/) the code line (/) code below Line .... no scroll can be done ....
_scrollView = [[UIScrollView alloc] init]; is what
Edit:
UIScrollView is now half the size of UIView in xiv .... everything was also installed in xib ... all this code is to be seen ... < / P>
If you want some snapshots They are ... ... ....
In the first photo, the UISCLUView footage is scrolled down in every way .....
I also NSLOG (@ "self.view.bounds.size.height * 7) - & gt; I am 2000+
Good because I can not see all my code or its results, I only It can assume UIScrollView is larger after the screen.
This means that some content is hidden beyond the limit of the screen.
Hope this helps :)
No comments:
Post a Comment