You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2017/03/29 06:49:08 UTC
[16/18] incubator-weex git commit: * [ios] remove unused
* [ios] remove unused
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/d52af62b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/d52af62b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/d52af62b
Branch: refs/heads/0.12-dev
Commit: d52af62b3c98f994fa4fdb6d4ae36f94b1acae5c
Parents: ef2a8f6
Author: acton393 <zh...@gmail.com>
Authored: Tue Mar 28 15:32:10 2017 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Tue Mar 28 15:32:10 2017 +0800
----------------------------------------------------------------------
ios/sdk/WeexSDK/Sources/Model/WXComponent.m | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/d52af62b/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Model/WXComponent.m b/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
index 96ba11e..621dca3 100644
--- a/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Model/WXComponent.m
@@ -240,7 +240,6 @@
}
[self _handleFirstScreenTime];
- [self _configWXComponentA11yWithAttributes:nil];
return _view;
}
@@ -467,6 +466,10 @@
self.view.accessibilityValue = _ariaLabel;
}
+ if (attributes[@"id"]) {
+ [self.view setAccessibilityIdentifier:[WXConvert NSString:attributes[@"id"]]];
+ }
+
// set accessibilityFrame for view which has no subview
if (0 == [self.subcomponents count]) {
self.view.isAccessibilityElement = YES;