Making a UIScrollView scroll without it being visually selected
Making a UIScrollView scroll without it being visually selected
- Subject: Making a UIScrollView scroll without it being visually selected
- From: Martin Pilkington <email@hidden>
- Date: Thu, 21 Oct 2010 14:04:00 +0100
Hey,
I've got a bit of an issue with how to approach an accessibility problem in an iOS app (4.2). I've created a grid view, which is a subclass of UIScrollView (think of it a bit like NSCollectionView). So the grid view contains various subviews. Now what I want is interaction like on the iOS home screen, where the scroll view is never selectable, just the content, but it does respond to an accessibility scroll gesture.
I'm not quite sure how to approach this. I've tried setting the accessibility frame to CGRectZero, but it then goes out of the list of on screen elements. It can be selected by touching on the scroll view, but after one scroll action it doesn't accept any more. Oddly, it doesn't actually seem to lose focus (at least according to the APIs).
The other option I have is to handle the swipe gesture myself when Voiceover is on and use certain new APIs to inform of the scroll if VoiceOver is on, but I'm not sure how that will work in future versions, nor the UI Testing tools in Instruments.
Thanks
Martin _______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden