Re: Something is constantly updating my scroll view's contentSize
Re: Something is constantly updating my scroll view's contentSize
- Subject: Re: Something is constantly updating my scroll view's contentSize
- From: Kyle Sluder <email@hidden>
- Date: Wed, 19 Jun 2013 15:53:55 -0700
Add an implementation of -setNeedsLayout to your view and set a
breakpoint?
--Kyle Sluder
On Wed, Jun 19, 2013, at 03:43 PM, Rick Mann wrote:
> I'm trying to get my scroll view, which contains a UIImageView, to just
> pan around it. I was having issues, so I set up to KVO the contentSize
> property.
>
> I'm getting called back constantly, every 500 ms.
>
> The call stack shows Core Animation causing it, but I have no on-going
> animations, and none that run every 500 ms. My log is filled with this.
> Any ideas?
>
> 2013-06-19 15:42:17.012 MatterScan[61505:c07] <ViewController.m:478>:
> minimapScrollView contentSize: {1024, 660}
> 2013-06-19 15:42:17.511 MatterScan[61505:c07] <ViewController.m:478>:
> minimapScrollView contentSize: {1024, 660}
> 2013-06-19 15:42:18.011 MatterScan[61505:c07] <ViewController.m:478>:
> minimapScrollView contentSize: {1024, 660}
> 2013-06-19 15:42:18.512 MatterScan[61505:c07] <ViewController.m:478>:
> minimapScrollView contentSize: {1024, 660}
>
>
> #0 0x000156c6 in -[ViewController
> observeValueForKeyPath:ofObject:change:context:] at
> /Users/rmann/Projects/Clients/Matterport/repo/trunk/iOS/Controller/MatterScan/ViewController.m:478
> #1 0x016fe417 in NSKeyValueNotifyObserver ()
> #2 0x01717b24 in NSKeyValueDidChange ()
> #3 0x016ccd60 in -[NSObject(NSKeyValueObserverNotification)
> didChangeValueForKey:] ()
> #4 0x01739b80 in _NSSetSizeValueAndNotify ()
> #5 0x01db8213 in -[UIScrollView _resizeWithOldSuperviewSize:] ()
> #6 0x01d98f2a in -[UIView(Geometry) resizeWithOldSuperviewSize:] ()
> #7 0x01d97b28 in __46-[UIView(Geometry)
> resizeSubviewsWithOldSize:]_block_invoke_0 ()
> #8 0x03b6a5a7 in __NSArrayChunkIterate ()
> #9 0x03b4203f in __NSArrayEnumerate ()
> #10 0x03b41a16 in -[NSArray enumerateObjectsWithOptions:usingBlock:]
> ()
> #11 0x01d97abf in -[UIView(Geometry) resizeSubviewsWithOldSize:] ()
> #12 0x02293dcc in -[UIView(AdditionalLayoutSupport) _is_layout] ()
> #13 0x01d9c7ae in -[UIView(Hierarchy) layoutSubviews] ()
> #14 0x01da42dd in -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
> ()
> #15 0x0281b6b0 in -[NSObject performSelector:withObject:] ()
> #16 0x01b91fc0 in -[CALayer layoutSublayers] ()
> #17 0x01b8633c in CA::Layer::layout_if_needed(CA::Transaction*) ()
> #18 0x01b86150 in
> CA::Layer::layout_and_display_if_needed(CA::Transaction*) ()
> #19 0x01b040bc in CA::Context::commit_transaction(CA::Transaction*)
> ()
> #20 0x01b05227 in CA::Transaction::commit() ()
> #21 0x01b058e2 in
> CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long,
> void*) ()
> #22 0x03b10afe in
> __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ ()
> #23 0x03b10a3d in __CFRunLoopDoObservers ()
> #24 0x03aee7c2 in __CFRunLoopRun ()
> #25 0x03aedf44 in CFRunLoopRunSpecific ()
> #26 0x03aede1b in CFRunLoopRunInMode ()
> #27 0x033787e3 in GSEventRunModal ()
> #28 0x03378668 in GSEventRun ()
> #29 0x01d53ffc in UIApplicationMain ()
> #30 0x0000266d in main at
> /Users/rmann/Projects/Clients/Matterport/repo/trunk/iOS/Controller/MatterScan/Misc/main.m:18
> #31 0x00002595 in start ()
>
> --
> Rick
_______________________________________________
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