17

I have a UICollectionView with a UITextView in each cell. When I tap on one of the text views and the keyboard comes up, I get this warning in the output panel:

setting the first responder view of the collection view but we don't know its type (cell/header/footer)

Text input works fine, though. However, I'd really like to know what this warning means before I use this code in production.

Dorian Roy
  • 3,094
  • 2
  • 31
  • 51
  • How did you add the `UITextView` to the cell? – Guido Hendriks Oct 11 '12 at 14:20
  • Any luck on getting what it means? I have the same problem with a UISearchBar and my UICollectionView steals firstReponder on reloadData (outputting this warning). – Yanik Nov 12 '12 at 16:33
  • No, I can only guess that it has some meaning to the Apple devs and they accidentally left it in the code. – Dorian Roy Nov 13 '12 at 09:16
  • I have the same problem, I'm afraid there is something wrong, bks after the warning occurred, we can't do insert/delete operation to the UICollectionView! – ZYiOS Nov 17 '12 at 12:06
  • given the related question https://stackoverflow.com/questions/10764804/setting-the-first-responder-view-of-the-table-but-we-dont-know-its-type-cell-h?rq=1 which has the same warning but with table, and its answer, i would assume there is something wrong with the way you add subviews to the collectionView. Either that or something to do with the selection handling code. Could you update with a sample/proof of concept? – Mihai Timar Mar 03 '14 at 09:14

1 Answers1

4

According to Apple, "you can safely ignore that".

https://devforums.apple.com/message/717898#717898

Ben Nichols
  • 212
  • 2
  • 3
  • 8