• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Paged UIScrollview is acting strange in iOS7?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Paged UIScrollview is acting strange in iOS7?


  • Subject: Paged UIScrollview is acting strange in iOS7?
  • From: Scott Andrew <email@hidden>
  • Date: Mon, 17 Feb 2014 17:31:13 -0800

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 (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Paged UIScrollview is acting strange in iOS7?
      • From: Scott Andrew <email@hidden>
  • Prev by Date: QTMovieLayer in IKImageBrowserCell
  • Next by Date: auto layout, 10.9, and NSScrollView and friends
  • Previous by thread: QTMovieLayer in IKImageBrowserCell
  • Next by thread: Re: Paged UIScrollview is acting strange in iOS7?
  • Index(es):
    • Date
    • Thread