Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bilder-Ordner aus Assets laden #24

Open
lSummerl opened this issue Jun 27, 2018 · 2 comments
Open

Bilder-Ordner aus Assets laden #24

lSummerl opened this issue Jun 27, 2018 · 2 comments

Comments

@lSummerl
Copy link
Collaborator

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

@lSummerl
Copy link
Collaborator Author

lSummerl commented Jul 3, 2018

Alle Bilder in eine Datei? So könnte json file entstehen

@lSummerl lSummerl removed the problem label Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant