How to detect where the on demand resources are located after being downloaded?

前端 未结 3 347
旧巷少年郎
旧巷少年郎 2021-01-21 05:38

I implement the app thinning in my project by getting the reference from below two answers:-

  1. https://stackoverflow.com/a/33145955/988169
  2. https://stackover
3条回答
  •  臣服心动
    2021-01-21 06:09

    Unless you specified a bundle when you initialized the resource request, the resources are placed in the main bundle by default. So for example, you could access them this way, if appropriate to your type of resource:

    NSString *path= [[NSBundle mainBundle] pathForResource:@"movie" ofType:@"mp4"  ];
    

提交回复
热议问题