Bug 18270 - UICollectionViewDataSource.DequeueReusableSupplementaryView is bound incorrectly
Summary: UICollectionViewDataSource.DequeueReusableSupplementaryView is bound incorrectly
Status: RESOLVED DUPLICATE of bug 15830
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 7.0.7
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-03-09 20:54 UTC by Todd Berman
Modified: 2014-03-11 13:44 UTC (History)
3 users (show)

Tags:
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:
Status:
RESOLVED DUPLICATE of bug 15830

Description Todd Berman 2014-03-09 20:54:57 UTC
Although it says it returns `id`, the docs are clear that it will return a UICollectionResuableView:

https://developer.apple.com/library/ios/documentation/uikit/reference/UICollectionView_class/Reference/Reference.html#//apple_ref/occ/instm/UICollectionView/dequeueReusableSupplementaryViewOfKind:withReuseIdentifier:forIndexPath: (see specifically the 'Return Value' section)
Comment 1 Sadik Ali 2014-03-11 02:07:05 UTC
I have checked this issue on below environments:

All Mac
XS 4.2.3 (Build 60)
X iOS 7.0.7.2

I noticed that UICollectionViewDataSource.GetViewForSupplementaryElement method's return type is UICollectionResuableView, Refer screen shot: http://screencast.com/t/nAoIy80Kmb

Let me know if I am missing anything to check this issue.
Comment 2 Todd Berman 2014-03-11 11:09:24 UTC
Sorry, it was mistitled, the doc link is correct though, It is with:

DequeueReusableSupplementaryView, not GetViewForSupplementaryElement
Comment 3 Sadik Ali 2014-03-11 11:24:56 UTC
I checked this issue as per comment2 and noticed that method
UICollectionViewDataSource. DequeueReusableSupplementaryView missing, 

Refer screen shot: http://screencast.com/t/m5SUdMBR
Comment 4 Todd Berman 2014-03-11 11:26:09 UTC
Yeah, it is in the UICollectionViewDelegate, not the DataSource, sorry about that. It is also in that combined class, UICollectionViewSource.
Comment 5 Todd Berman 2014-03-11 11:27:13 UTC
Er, Sorry, UICollectionView.

It is early here!
Comment 6 Rolf Bjarne Kvinge [MSFT] 2014-03-11 13:44:29 UTC
This is a known issue.

*** This bug has been marked as a duplicate of bug 15830 ***