0

I've implemented a collectionView in a tableView cell in one my (Swift) projects where each UITableViewCell contains a UICollectionView and each collectionView then has UICollectionViewCell's. And my collectionView cell is again customized in a Xib.

Now when I tried to implement accessibility on this, this is going through some weird behavior. What I did so far -

(1) Since each UITableViewCell contains UICollectionView, so I set tableView cell's accessibility to false.

e.g. dummyTableViewCell.isAccessibilityElement = false

(2) Then I override UIAccessibilityContainer methods on my UICollectionView class. e.g. override func accessibilityElementCount() -> Int { return subViews.count }

and so on...

While this reads through each element of collectionView inside tableView cell, but then VO stops after 4th or 5th row and does not scroll past any more. I did try again with implementing UIScrollView delegate methods, but nothing is working out so far.

halfer
  • 19,824
  • 17
  • 99
  • 186
Manoj
  • 953
  • 2
  • 8
  • 24
  • you are saying that you cant scroll the collection view in accessibility mode ? – Teja Nandamuri Feb 25 '16 at 14:24
  • @TejaNandamuri collection view scroll is working fine when VO is on. It's the table view cell which is not scrolling after certain row. one of the reasons I could think of, it's not reading the table view cells which are yet to created but its reading fine those are already in the screen. – Manoj Feb 25 '16 at 16:11
  • Did you try to scroll it manually with fingers ? – Teja Nandamuri Feb 25 '16 at 16:12

0 Answers0