[英]XCode XCAssets and autocompletion
我想知道是否有人知道自動完成中提供的XCAsset符號是否可以以任何方式使用,我想象但是它沒有用。
Xcode提出所有的圖像,它看起來真的很有趣,但如果只是為了“顯示”我會很傷心:(
您所看到的是圖像文字 。 這不是針對圖像的名字,它是圖像-因此,使用一個相當於整個 UIImage(named: "icon-stack")調用,而不僅僅是"icon-stack"該呼叫中的字符串。
UIImage(named: "icon-stack")
"icon-stack"
如果將其中一個直接分配給var或let ,您將看到其推斷類型為UIImage (如果定位macOS,則為NSImage ):
var
let
UIImage
NSImage
[英]Xcode autoCompletion
[英]Xcode: Advice on working with xcassets
[英]Xcode git not showing xcassets to commit
[英]Xcode 6 - xcassets for universal image support
[英]Xcode 6.3 Swift Autocompletion
[英]Autocompletion is not working in Xcode 7.2.1
[英]How to use image.xcassets in XCode?
[英]Xcode 9 no longer copies xcassets into bundle target
[英]Using Images.xcassets in Xcode 6 beta
[英]XCode SVN Unable to commit Images.xcassets
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.