[英]Xamarin iOS - Get all images from Bundle or folder
How can I get all images (or filenames) from the Bundle or from the resources folder? 如何从捆绑包或资源文件夹中获取所有图像(或文件名)? I already tried it with
我已经尝试过了
NSBundle.GetPathsForResources(".png", "Resources/Images/Various");
but this only returns null . 但这只会返回null 。
尝试使用MonoTouch.Foundation.NSFileManager.GetDirectoryContentRecursive
或GetDirectoryContent
方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.