0

NSURL *imgPath = [[NSBundle mainBundle] URLForResource:@"mycert" withExtension:@"cer"];

The above code works fine with image or other media resources but returns NULL with .cer file!

Any help will be highly appreciated.

user804417
  • 155
  • 2
  • 13
  • in swift I have tried its working fine. – Mubin Mall Jan 11 '19 at 12:34
  • `let path = Bundle.main.path(forResource: "xyz", ofType: "cer")` `let path1 = Bundle.main.url(forResource: "xyz", withExtension: "cer")` I tried both ways and printed in the console. – Mubin Mall Jan 11 '19 at 12:35

0 Answers0