문제

I'm working in iOS 7, and I want to show a UIActivityViewController all with my custom activities and no built in activities. I know that I can use excludesActivityTypes and list all the constants that are defined, but is there a way to automatically exclude all system activities(but not my own)?

I would hate to list all the system activities in the call to that property, and then have my app break when iOS 7.2 or iOS 8 comes around and adds more built in activities.

도움이 되었습니까?

해결책

Sadly the API doesn't support this. You must list all activities for exclusion. Every iOS update you need to check to see if any new activities are available and update your app accordingly.

Submit an enhancement request to Apple to add support for a way to either exclude all activities or a way to specify which ones to include.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top