Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何检查元素树中的元素是否为 UIASegmentedControl 类型?
例如
scrollView.elements()[i] 是 UIASegmentedControl 的类型
我自己才找到答案。
scrollView.elements()[i] instanceof UIASegmentedControl