Exclude AirDrop and add to the reading list from applications created using the iOS 6 SDK

I have a UIActivityViewController in my iOS 6 application, I click update, but I do not compile it with the iOS 7 SDK yet.

Is there a way to disable Add to Reading List and AirDrop in my UIActivityViewController in iOS7 without recompiling with the iOS 7 SDK?

+7
ios ios6 ios7 uiactivityviewcontroller uiactivitytypeairdrop
source share
1 answer

excludedActivityTypes is a valid property in iOS 6.0 and above, so you can use this. The constants you need ( UIActivityTypeAddToReadingList and UIActivityTypeAirDrop ) are not available, so you can use your literal values ​​(most likely the same as the variable name) until you recompile with the iOS 7 SDK (which I suggest you do. Apple will probably change constant value, but it’s better to use this variable instead of its literal). I believe that these values ​​will be ignored in iOS 6.x and will not cause any problems, since any UIActivity can determine its own name so that the system does not have the opportunity to check this type. Most likely, they will simply add them to the internal ignore list.

+11
source share

All Articles