Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
I have a subclass of UIPickerViewModel to display two columns:
DATE | TIME
It all works fine in simulator (Debug and Release) and is OK on real devices in release. But in DEBUG on a real iPhone or iPad, the columns are displayed on top of each other or even reversed (when different widths are used)! i.e.:
TIME | DATE
This is the code that shows them on top of each other (in DEBUG on real devices):
private class PickerViewModelX : UIPickerViewModel
public override int GetComponentCount(UIPickerView picker)
public override float GetComponentWidth(UIPickerView picker, int component)
public override float GetRowHeight(UIPickerView picker, int component)
public override int GetRowsInComponent(UIPickerView picker, int component)
public override UIView GetView(UIPickerView picker, int row, int component, UIView view)
UILabel label = (UILabel)view;
if (label == null)
label = new UILabel(new RectangleF(0.0f, 0.0f, 100.0f, 44.0f));
label.Text = (component == 0 ? "DATE" : "TIME");
It something to do with component widths, I think.
Very strange bug.
=== Xamarin Studio ===
Version 4.2.2 (build 2)
Mono 3.2.6 ((no/9b58377)
GTK+ 2.24.23 theme: Raleigh
Package version: 302060000
=== Apple Developer Tools ===
Xcode 5.0.2 (3335.32)
=== Xamarin.iOS ===
Version: 22.214.171.124 (Business Edition)
Build date: 2014-21-01 06:33:05-0500
=== Xamarin.Mac ===
Xamarin.Mac: Not Installed
=== Xamarin.Android ===
Version: 4.10.1 (Starter Edition)
Android SDK: /Users/billbatchelor/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)
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)
=== Build Information ===
Release ID: 402020002
Git revision: c5f82958ae7d9af652b44b87ceff777b3ad19b91
Build date: 2013-11-19 15:35:40+0000
Xamarin addins: a4044fee09138f6fd031a9944b7caaeb51e57e80
=== Operating System ===
Mac OS X 10.9.1
Darwin BB-Mac-mini.local 13.0.0 Darwin Kernel Version 13.0.0
Thu Sep 19 22:22:27 PDT 2013
This is on iOS 7.0.4
- It happens on an iPhone 5s and iPad mini both with iOS 7.0.4
And only happens with DEBUG builds.
This might be a dup of bug #17597 - but we'd need a complete test project to be able to confirm.
My problems with pickers that have been introduced in the latest build do not go away with release builds - they're there in both types. Still trying to work out exactly which logged bug mine match though.
Same here, doesn't work at all on the devices in either Release or Debug, but works fine on the Simulator. Some observations I've made thus far
* If GetComponentWidth is not overridden in the UIPickerViewModel subclass with just 1 column it works fine
* If GetComponentWidth is overridden, with 2 columns it doesn't work (I then get the same behaviour as BB described above)
* If GetComponentWidth is overridden with a width of 300 and with 1 column, nothing is displayed at all in the picker.
Created attachment 6024 [details]
Solution demonstrating Picker Issues that I described above
@Alex Slater, your project works fine with the fix for bug #17597, so I'm marking this as a duplicate.
*** This bug has been marked as a duplicate of bug 17597 ***
Rolf: both 2 issues? I had 3 different models, did you try all of them ?
@Alex, yes, all three models have identical behavior between the simulator and device now.
@Rolf, awesome, thx, is there an ETA of the patch ?
@Alek, we'll probably release a new beta version (7.0.7) later this week or next week with this patch.
Today, we have checked this issue with:
XS 4.2.4(build 14)- d36f82139fd61a0cda68d5baabb1c7b8402116b9
Device info: iPad 7.0.4
Now this issue is working fine, the scrolling stops when we lift the finger
from iPad screen. Hence marking this as Verified
@Rolf, brilliant, thanks.