[Mono-bugs] [Bug 648641] New: UIPicker GetView returns the wrong type

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Oct 22 10:52:14 EDT 2010



           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: gnorton at novell.com
        ReportedBy: alfonso.moscato at merqurio.it
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:
Gecko/20100914 Firefox/3.6.10 GTB7.1 ( .NET CLR 3.5.30729)

The method GetView in UIPicker is declared to return a string:
public virtual string GetView (UIPickerView pickerView, int row, int component,
UIView view)

But the correspondent method in the paragraph return states:
    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:

Expected Results:  
the declaration should be:

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.

More information about the mono-bugs mailing list