Instance Method

initWithName:sessionRole:

Creates a scene-configuration object with the specified role and app-specific name.

Declaration

- (instancetype)initWithName:(NSString *)name sessionRole:(UISceneSessionRole)sessionRole;

Parameters

name

The app-specific name you want to assign to the scene. For scenes you specify in your Info.plist file, this value corresponds to the string assigned to the UISceneConfigurationName key.

sessionRole

The role of the scene. For a list of possible roles, see UISceneSessionRole.

Return Value

A new scene-configuration object.

Discussion

After creating a scene-configuration object, supply values for the sceneClass, delegateClass, and storyboard properties.

See Also

Creating a Configuration Object