How containerURLForSecurityApplicationGroupIdentifier in NSFileManager works on iOS 7

前端 未结 2 699
温柔的废话
温柔的废话 2020-12-19 20:12

I want to share file between multiple applications in iOS environment.

I\'m already using the UIDocumentInteractionController mechanism to achieve the purpose but I\

相关标签:
2条回答
  • 2020-12-19 20:45

    You probably have not enabled App Groups for your app. You will have to create a Identifier for your App Group in Member Center on the Apple developer site.

    enter image description here

    enter image description here

    0 讨论(0)
  • 2020-12-19 20:57

    I just started working with this today to play with iOS 8 App Extensions. I got it to initially work (returning a real directory and not nil) by prepending my developer team ID to the identifier.

    NSURL* containerURL = [fileManager containerURLForSecurityApplicationGroupIdentifier:@"YOUR_TEAM_ID.com.example.AppFileSharing"];

    0 讨论(0)
提交回复
热议问题