小编a d*_*per的帖子

WatchKit SF等宽数字

有没有办法在WatchKit中为旧金山字体设置monospaced?在介绍新系统字体时,演示者仅显示AppKit.

示例代码表示赞赏.

Xcode:7.0 beta WatchOS:2.0

objective-c ios swift watchkit xcode7

5
推荐指数
2
解决办法
761
查看次数

UI测试NSPredicate用于单元格staticTexts

我正在创建一个XCUIElementQuery来获取所有具有staticTexts的单元格以字符串开头(例如"Buy"),但不知道.我用谷歌搜索但没有希望.

绝望的尝试得到staticText但不是cell.

    XCUIElementQuery *rows = [app.cells.staticTexts matchingPredicate:[NSPredicate predicateWithFormat:@"label CONTAINS 'Buy'"]];
Run Code Online (Sandbox Code Playgroud)

有经验的人吗?我们parent至少可以得到上面的staticTexts吗?

xcode objective-c ui-testing nspredicate xcode-ui-testing

1
推荐指数
1
解决办法
2856
查看次数