Initializes and returns a new activity view controller object that acts on the specified data.
- iOS 6.0+
The array of data objects on which to perform the activity. The type of objects in the array is variable and dependent on the data your application manages. For example, the data might consist of one or more string or image objects representing the currently selected content.
Instead of actual data objects, the objects in this array can be objects that adopt the
UIActivityprotocol, such as
UIActivityobjects. Source and provider objects act as proxies for the corresponding data in situations where you do not want to provide that data until it is needed. Note that you should not reuse an activity view controller object that includes a
UIActivityobject in its
This array must not be
niland must contain at least one object.
An array of
UIActivityobjects representing the custom services that your application supports. This parameter may be
The activity view controller to present.
It is your responsibility to present and dismiss the view controller using the appropriate means for the given device idiom. On iPad, you must present the view controller in a popover. On other devices, you must present it modally.