【发布时间】:2017-06-16 12:18:05
【问题描述】:
在 Repl 中,我对“1”进行了查询,这是选项卡上的当前徽章编号。
这返回了下面的查询,你可以看到它有 _UIBadgeView 类。
但是,当我对 _UIBadgeView 运行查询时,我什么也得不到。
app.Query("_UIBadgeView"); 和 app.Query(c => c.Class("_UIBadgeView")); 我都试过了
有什么办法可以访问徽章视图吗?
{
Id => null,
Description => "<_UIBadgeView: 0x7e5cd380; frame = (49.5 2; 18 18); text = '1'; userInteractionEnabled = NO; layer = <CALayer: 0x7e5cceb0>>", Rect => {Width => 18, Height => 18, X => 145.5, Y => 621, CenterX => 154.5, CenterY => 630
},
Label => "1",
Text => "1",
Class => "_UIBadgeView",
Enabled => false
}
【问题讨论】:
标签: xamarin.ios xamarin.uitest