Sunday, December 8, 2013

UIScrollView not scrolling

The UIScrollView placed in the View Controller inside, you can scroll to normal.
In the View side plus one child View, and then put into the sub-View in UIScrollView, how you can not roll out?
Reply:
UIScrollView likelihood is your position size is not set right, look at your UIScrollView coordinate values ​​to be placed in the child view as a sub view relative coordinates!
Reply:
Coordinate problem. Then UIScrollview there nothing?
Reply:
Problem solving.
In code, set about contentSize enough. Since I am lazy, direct way with the view, drag generated UIScrollView, View layer inside use, the story is not so. Apple did not do a good job handling estimates, BUG lead. Worse for a few days, the last line of code to get it.
Depressed. .
Reply:
The reply was deleted at the moderator 2012-08-14 17:24:15

No comments:

Post a Comment