Re: UIAccessibilityContainer in a table view
Re: UIAccessibilityContainer in a table view
- Subject: Re: UIAccessibilityContainer in a table view
- From: Chris Fleizach <email@hidden>
- Date: Mon, 9 May 2011 08:38:54 -0700
How are you returning the accessibilityFrame for each of these fake elements?
The way to make it work correctly, I believe, would be to do something like
@implementation FakeElement
...
- (CGRect)accessibilityFrame
{
CGRect bounds = [customTableParentCell boundsForElement:self];
UIWindow *window = [customTableParentCell window];
bounds = [customTableParentCell convertRect:bounds toView:window];
bounds = [window convertRect:bounds toWindow:nil];
return bounds;
}
@end
On May 9, 2011, at 7:39 AM, Sean Heber wrote:
> I'm trying to put a custom view inside a UITableViewCell which of course lives within a UITableView. I want to make this custom view accessible so I need to make it a UIAccessibilityContainer (since it contains several visual elements that aren't implemented as their own UIViews).
>
> When I do this, the location of the elements get all messed up whenever the table scrolls. While paging through the elements using VoiceOver, it will automatically scroll the table to attempt to center the selected element on screen, but then the outline of where VoiceOver thinks the element is no longer lines up with where it is visually.
>
> I posted this question (along with code) on StackOverflow awhile back and haven't got any decent answers, so if you think you might be able to help, the details are all here:
>
> http://stackoverflow.com/questions/5872453/uiaccessibilitycontainer-in-a-table-view
>
> Thanks!
>
> l8r
> Sean
>
> _______________________________________________
> 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
_______________________________________________
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