initWithItems:defaultAlbumIdentifier:photoLibrary:

initWithItems:defaultAlbumIdentifier:photoLibrary:

initWithItems:defaultAlbumIdentifier:photoLibrary: Instance Method of PHSharedAlbumPostingViewController

- (instancetype) initWithItems:(NSArray<PHPickerResult *> *) items defaultAlbumIdentifier:(NSString *) defaultAlbumIdentifier photoLibrary:(PHPhotoLibrary *) photoLibrary;

Parameters

items

The items to be posted to the shared album.

defaultAlbumIdentifier

Identifier for the shared album to be pre-selected. If none provided, the user can manually choose a shared album.

photoLibrary

The photo library to choose from.