iOS Question About Subfolders in DirAssets

asales

Expert
Licensed User
Longtime User
I'm starting to migrate my B4A apps to B4i.
Most of the issues I could fixed.

I saw several old threads (2014, 2015, 2017) about this question, but I'd like a new answer in case it still doesn't work.

Several of my B4A apps has images in subfolders of the DirAssets folder and I use this code:
B4X:
ivImage1.Bitmap = xui.LoadBitmapResize(File.DirAssets, id & "/" & "1.webp", ivImage1.Width, ivImage1.Height, True)
In B4i I get this error:
B4X:
Error opening stream (/private/var/mobile/Containers/Data/Application/F75779B4-16D8-44DA-AA2C-4707C3ACC089/tmp/virtual_assets/1/1.webp): Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" UserInfo={_kCFStreamErrorCodeKey=2, _kCFStreamErrorDomainKey=1}

Does B4i still not support subfolders in DirAssets like the B4A?
 
Top