iOS
对于 iOS 9.2
及更低版本,苹果唯一的自动化技术被称为UIAutomation
,它运行在 Instruments
中。从 iOS 10
开始,苹果已经完全删除了 UIAutomation
工具。
同时,苹果推出了一款名为XCUITest
的新型自动化技术,从 iOS 9.3
到 iOS 10
及以上版本,这将是苹果唯一支持的自动化框架。
If you want to create an associative map as part of your data definition, protocol buffers provides a handy shortcut syntax:
map<key_type, value_type> map_field = N;
…where the key_type
can be any integral or string type (so, any scalar type except for floating point types and bytes
). Note that enum is not a valid key_type
. The value_type
can be any type except another map.
So, for example, if you wanted to create a map of projects where each Project
message is associated with a string key, you could define it like this:
map<string, Project> projects = 3;
The generated map API is currently available for all proto2 supported languages. You can find out more about the map API for your chosen language in the relevant API reference.
...