You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alle Bilder aus dem Iconbilder Ordner der Assets laden.
irgendwie so:
if let path = Bundle.main.path(forResource: "assets/test", ofType: "json") {
let data = try Data(contentsOf: URL(fileURLWithPath: path), options: .alwaysMapped)
let jsonObj = JSON(data: data)
}
Alle Bilder aus dem Iconbilder Ordner der Assets laden.
irgendwie so:
if let path = Bundle.main.path(forResource: "assets/test", ofType: "json") {
let data = try Data(contentsOf: URL(fileURLWithPath: path), options: .alwaysMapped)
let jsonObj = JSON(data: data)
}
https://stackoverflow.com/questions/41485128/what-can-i-do-whether-add-images-to-assets-or-in-folder-in-ios
leider funktioniert der vorgeschlagene code nicht
The text was updated successfully, but these errors were encountered: