Instruction manuals

UIActivityViewController Class123

Description
Ios Dev new class
Published
of 9
All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Related Documents
Share
Transcript
  UIActivityViewController Class Reference  Contents UIActivityViewController Class Reference  3Overview 3Tasks 3Initializing the Activity View Controller 3Accessing the Completion Handler 4Excluding Specific Activity Types 4Properties 4completionHandler 4excludedActivityTypes 4Instance Methods 5initWithActivityItems:applicationActivities: 5Constants 6UIActivityViewControllerCompletionHandler 6 Document Revision History  8 2013-04-23 | Copyright © 2013 Apple Inc. All Rights Reserved. 2  Inherits from  UIViewController : UIResponder : NSObject Conforms to  NSCoding (UIViewController)UIAppearanceContainer (UIViewController)NSObject (NSObject) Framework   /System/Library/Frameworks/UIKit.framework  Availability  Available in iOS 6.0 and later. Declared in  UIActivityViewController.h Overview The UIActivityViewController classisastandardviewcontrollerthatyoucanusetooffervariousservicesfromyourapplication.Thesystemprovidesseveralstandardservices,suchascopyingitemstothepasteboard,posting content to social media sites, sending items via email or SMS, and more. Apps can also define customservices.Your app is responsible for configuring, presenting, and dismissing this view controller. Configuration for theview controller involves specifying the data objects on which the view controller should act. (You can alsospecify the list of custom services your app supports.) When presenting the view controller, you must do sousingtheappropriatemeansforthecurrentdevice.OniPad,youmustpresenttheviewcontrollerinapopover.On iPhone and iPod touch, you must present it modally. Tasks Initializing the Activity View Controller – initWithActivityItems:applicationActivities:  (page 5)Initializes and returns a new activity view controller object that acts on the specified data. 2013-04-23 | Copyright © 2013 Apple Inc. All Rights Reserved. 3 UIActivityViewController Class Reference  Accessing the Completion Handler   completionHandler  (page 4)  property  The completion handler to execute after the activity view controller is dismissed. Excluding Specific Activity Types   excludedActivityTypes  (page 4)  property  The list of services that should not be displayed. Properties completionHandler The completion handler to execute after the activity view controller is dismissed. @property(nonatomic,copy) UIActivityViewControllerCompletionHandler completionHandler Discussion When the user-selected service finishes operating on the data, or when the user dismisses the view controller,the view controller executes this completion handler to let your app know the final result of the operation. Availability Available in iOS 6.0 and later. Declared in UIActivityViewController.h excludedActivityTypes The list of services that should not be displayed. UIActivityViewController Class Reference Properties 2013-04-23 | Copyright © 2013 Apple Inc. All Rights Reserved. 4
Search
Similar documents
Tags
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks