![](/img/trans.png)
[英]WatchKit : Attributed string 'String ' contains NSFontAttributeName that isn't a UIFont (SanFranciscoDisplay-Light). Removed
[英]Attributed string 'Google' contains NSLinkAttributeName. Removed
我正在開發Apple Watch中的應用程序。 我正在使用標簽並將文本添加為鏈接。 在該鏈接上,我想執行電話呼叫事件。 我正在使用以下代碼。
[string addAttribute:NSLinkAttributeName
value:linkURL
range:NSMakeRange(0, string.length)];
但我收到以下錯誤。
Attributed string '9618194xxx' contains NSLinkAttributeName. Removed
請幫幫我
提前致謝
我不認為WatchKit支持屬性字符串中的鏈接。 由於Watch上沒有瀏覽器,因此點擊它根本無法打開任何內容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.