You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When PagedImageScrollView is initialized with a positive y like 20 inside the parent view. Then the subview of PagedImageScrollView. Which is the scrollView. Will appear at y position 40 inside the parent view of PagedImageScrollView. The x component may also be affected in the same way.
The following snippet of code suggests how to fix the bug.
(id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
/* My added piece of code. The y is set to 0(zero) so that the scrollView along with its subviews will appear at the same position as the PagedImageScrollView inside the parent of PagedImageScrollView.
*/
CGRect scrollViewFrame = CGRectMake(frame.origin.x, 0, frame.size.width, frame.size.height);
self.scrollView = [[UIScrollView alloc] initWithFrame:scrollViewFrame];
The text was updated successfully, but these errors were encountered:
When PagedImageScrollView is initialized with a positive y like 20 inside the parent view. Then the subview of PagedImageScrollView. Which is the scrollView. Will appear at y position 40 inside the parent view of PagedImageScrollView. The x component may also be affected in the same way.
The following snippet of code suggests how to fix the bug.
(id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
The text was updated successfully, but these errors were encountered: