I have some old gallery code that uses UIScrollView in a paged mode. We are 
trying to port the code to iOS7 but when we are getting strange behavior. In 
iOS7 we are constantly getting scrollViewDidScroll with weird offset of 
negative or some large offset that has huge exponents. Is there a known change 
in paged scrollviews in iOS7? Code is simple.  The image content size is hard 
coded at 20 pages. The reality is its dynamic based on images coming and going.

if (_imageScroller == nil) {
        CGRect scollViewRect = self.bounds;
        scollViewRect.size.width += IMAGE_PADDING;
        
    
        _imageScroller = [[UIScrollView alloc] initWithFrame:scollViewRect];
        CGSize contentSize = _imageScroller.bounds.size;
        contentSize.width *= 20;
        _imageScroller.contentSize = contentSize;
        _imageScroller.pagingEnabled = YES;
        _imageScroller.delegate = self;
        _imageScroller.clipsToBounds = YES;
        _imageScroller.showsVerticalScrollIndicator = NO;
        _imageScroller.showsHorizontalScrollIndicator = NO;
        _imageScroller.backgroundColor = [UIColor blueColor];
        
        [self addSubview:_imageScroller];
    }
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to