Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 28th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. enum image resources in monotouch
  2. var images = EnumResouceImages("Images/");
  3. foreach(imgPath in images)
  4.     UIImage myImg = UIImage.FromFile(imgPath);
  5.        
  6. foreach (var filename in Directory.EnumerateFiles (Path.Combine (NSBundle.MainBundle.BundleUrl.Path, "Images"), "*.png"))
  7.     Console.WriteLine (filename);