更新时间:2023-02-13 23:38:39
它是imageWithContents**Of**File
,而不是imageWithContentsofFile
.
此外,该图片将不会加载.当代码在设备上运行时,路径位于本地计算机上.您应该使用layout/
目录.
Also, that image won't load. The path is on your local computer while your code is running on your device. You should use the layout/
directory.