Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get voice over to read out title when new view controller is pushed?

In the setting app if I double tap on the 'General' row. It pushes the the general view controller. It then says

"General"

(The name of the current view controller)

Then

"Settings, back button"

(The name of the selected item)

However in my app with a custom self.navigaitonItem.titleView it only says

"Home, Back Button"

How do I get it to read out the name of the screen? (I tired to set self.title)

like image 841
Robert Avatar asked May 02 '16 20:05

Robert


1 Answers

I havent tested it but you might need to check out the accessibilityLabel property of the view. From documentation:

By default, standard UIKit controls and views have labels that derive from their titles. If you provide a custom control or view, however, you need to set this property appropriately so that assistive applications can supply accurate information to users with disabilities.

like image 159
cekisakurek Avatar answered Oct 28 '22 00:10

cekisakurek