SBSDKUICroppingViewController
@interface SBSDKUICroppingViewController : SBSDKUIViewController
A highly customizable view controller to edit a pages polygon or the page’s orientation.
-
Creates a new instance of ‘SBSDKUICroppingViewController’ and presents it modally.
Declaration
Objective-C
+ (nonnull instancetype)presentOn:(nonnull UIViewController *)presenter withPage:(nonnull SBSDKUIPage *)page withConfiguration: (nonnull SBSDKUICroppingScreenConfiguration *)configuration andDelegate: (nullable id<SBSDKUICroppingViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, with page: SBSDKUIPage, with configuration: SBSDKUICroppingScreenConfiguration, andDelegate delegate: SBSDKUICroppingViewControllerDelegate?) -> Self
Parameters
presenter
The view controller the new instance should be presented on.
page
The page to be cropped or rotated.
configuration
The configuration to define look and feel of the new page cropping view controller.
delegate
The delegate of the new page cropping view controller.
Return Value
A new instance of ‘SBSDKUICroppingViewController’.
-
Creates a new instance of ‘SBSDKUICroppingViewController’.
Declaration
Objective-C
+ (nonnull instancetype) createNewWithPage:(nonnull SBSDKUIPage *)page withConfiguration: (nonnull SBSDKUICroppingScreenConfiguration *)configuration andDelegate: (nullable id<SBSDKUICroppingViewControllerDelegate>)delegate;
Swift
class func createNew(with page: SBSDKUIPage, with configuration: SBSDKUICroppingScreenConfiguration, andDelegate delegate: SBSDKUICroppingViewControllerDelegate?) -> Self
Parameters
page
The page to be cropped or rotated.
configuration
The configuration to define look and feel of the new page cropping view controller.
delegate
The delegate of the new page cropping view controller.
Return Value
A new instance of ‘SBSDKUICroppingViewController’.
-
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUICroppingViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUICroppingViewControllerDelegate? { get set }