Bug 25250 - IUIScrollViewDelegate Scrolled only fires in simulator and not device.
Summary: IUIScrollViewDelegate Scrolled only fires in simulator and not device.
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: XI 8.2.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2014-12-10 20:36 UTC by winnicki.derek
Modified: 2015-01-05 04:31 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description winnicki.derek 2014-12-10 20:36:18 UTC

I'm subclassing PageRenderer in my Xamarin.iOS project and implementing the Scrolled method from IUIScrollViewDelegate. The method is called when run on the iOS 8 simulator, but on my iPhone 6 running iOS 8 it doesn't.

Steps to repro:

I don't think you have to go to the lengths of doing Xamarin.Forms with subclassing a ContentPage and then adding the renderer in the iOS project, but if you can't repro with these steps I can add more info.

1. Add a UIViewController that implements IUIScrollViewDelegate interface.
2. Create a UIScrollView and set the WeakDelegate = this
3. View.AddSubview(scrollView);
3. Implement the Scrolled method:

        public void Scrolled(UIScrollView scrollView) {}

4. Run on simulator and see the Scrolled method fire.
5. Run on actual device and it shouldn't fire.

=== Xamarin Studio ===

Version 5.5.4 (build 15)
Installation UUID: 4ac8e248-cce8-42a6-b3d2-cafcaac13200
	Mono 3.10.0 ((detached/92c4884)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 310000031

=== Apple Developer Tools ===

Xcode 6.1 (6604)
Build 6A1052d

=== Xamarin.iOS ===

Version: (Indie Edition)
Hash: 840a925
Build date: 2014-11-16 21:03:22-0500

=== Xamarin.Android ===

Version: (Indie Edition)
Android SDK: /Users/winnicki/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.Mac ===


=== Build Information ===

Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8

=== Operating System ===

Mac OS X 10.9.5
Darwin derek-winnickis-MacBook-Pro.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 1 winnicki.derek 2014-12-11 19:24:18 UTC
Correction, for Step 3 above, set View = scrollView
Comment 2 Rolf Bjarne Kvinge [MSFT] 2014-12-15 03:59:52 UTC
Could you zip up and attach your project? That would be the quickest way for us to have a look at it.
Comment 3 winnicki.derek 2014-12-17 14:39:26 UTC
I have a suspicion there is a value difference when run on device vs simulator. I'm going to test some more on my end and if I can't solve it I'll upload a zip project for you. Thanks.
Comment 4 winnicki.derek 2014-12-31 16:41:10 UTC
This is resolved for me. The issue was because I didn't have my iPhone 6 launch images and so the bounds were different which was causing the scrollview to break.

related thread:

Comment 5 Rolf Bjarne Kvinge [MSFT] 2015-01-05 04:31:17 UTC
I'm closing this then.