Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11453] iOS: Accessibility: SearchBar: Accessibility does not work for SearchBar on iOS

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2012-10-14T00:26:16.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.1.0, 2012 Sprint 21 Core, 2012 Sprint 21
ComponentsiOS
Labelsaccessibility_module, qe-ios100112, qe-nfc, qe-testadded
ReporterSatyam Sekhri
AssigneeMax Stepanov
Created2012-10-13T06:36:51.000+0000
Updated2014-06-19T12:43:47.000+0000

Description

The accessibility does not work for SearchBar. The Label, Value or Hint are not voiced over. This works fine on Android Steps To Reproduce: 1. Open the application below with voice over ON 2. Touch the SearchBar Actual: After Step 2: The default text is spoken but not the Label, Value and Hint defined Expected: After Step 2: The Label Value and Hint should be spoken by the device
var win = Ti.UI.createWindow({
    title : 'Welcome',
    backgroundColor: "#fff"
});
	var search2 = Titanium.UI.createSearchBar({
		    barColor:'#000', 
		    showCancel:true,
		    height:43,
		    top:100,
		    accessibilityLabel: "Search bar2 label.",
			accessibilityValue: "Search bar2 value.",
			accessibilityHint: "Search bar2 hint"
		});
 win.add(search2);
win.open();

Comments

  1. Max Stepanov 2012-10-14

    Has been fixed by PR https://github.com/appcelerator/titanium_mobile/pull/3212 Worth to mention that overriding accessibility properties for search bar is not common.
  2. Priya Agarwal 2013-07-15

    Updated label and verified with: Titanium Studio:3.1.2.201307091843 Titanium SDK: 3.1.2.v20130710144553 acs:1.0.3 alloy:1.1.3 npm:1.2.14 titanium:3.1.1 titanium-code-processor:1.0.1 OS: OSX 10.8 Device:iPhone4 (v 5.1) Xcode: 4.5.1 Accessibility on search bar working for iOS

JSON Source