https://bugzilla.novell.com/show_bug.cgi?id=648641
https://bugzilla.novell.com/show_bug.cgi?id=648641#c0 Summary: UIPicker GetView returns the wrong type Classification: Mono Product: MonoTouch Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Class Libraries AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 GTB7.1 ( .NET CLR 3.5.30729) The method GetView in UIPicker is declared to return a string: [MonoTouch.Foundation.Export("pickerView:viewForRow:forComponent:reusingView:")] public virtual string GetView (UIPickerView pickerView, int row, int component, UIView view) But the correspondent method in the paragraph return states: Returns A view object to use as the content of row. The object can be any subclass of UIView, such as UILabel, UIImageView, or even a custom view. And also ios sdk declares it returns an UIView. And if you read the documentation it is clear it have to return an UIView. But it is declared string, so you can use it. Reproducible: Always Steps to Reproduce: 1. 2. 3. Expected Results: the declaration should be: [MonoTouch.Foundation.Export("pickerView:viewForRow:forComponent:reusingView:")] public virtual UIView GetView (UIPickerView pickerView, int row, int component, UIView view) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
