SCDetailViewControllerOptions
@interface SCDetailViewControllerOptions : NSObject
This class is used to specify options for automatically generated detail view controllers.
Use this class to specify options such has how the automatically generated detail views are presented, their navigation bar type, their title, and/or their table view style.
Sample use: SCArrayOfObjectsModel *myObjectsModel = …; myObjectsModel.detailViewControllerOptions.presentationMode = SCPresentationModeModal;
-
This value controls how the detail view controller is presented. Default: SCPresentationModeAuto.
Declaration
Objective-C
@property (nonatomic) SCPresentationMode presentationMode;
-
The modal presentation style of the detail view. Default: UIModalPresentationFormSheet. @note: Only applicable if presentationMode equals SCPresentationModeModal.
Declaration
Objective-C
@property (nonatomic) UIModalPresentationStyle modalPresentationStyle;
-
The navigation bar type of the detail view controller. Default: SCNavigationBarTypeAuto. Set to SCNavigationBarTypeNone to have simple back button navigation.
Declaration
Objective-C
@property (nonatomic) SCNavigationBarType navigationBarType;
-
Set to TRUE to allow the cancel button to appear when entering editing mode in the detail view controller. Default: TRUE. @note: Only applicable if navigationBarType == SCNavigationBarTypeEditRight.
Declaration
Objective-C
@property (nonatomic) BOOL allowEditingModeCancelButton;
-
The title of the detail view controller. Set to nil to have the presenting control set a title automatically. Default: nil.
Declaration
Objective-C
@property (nonatomic, copy) NSString *title;
-
The style of the detail view controller’s table view. Default: Depends on the control presenting the view controller.
Declaration
Objective-C
@property (nonatomic) UITableViewStyle tableViewStyle;
-
Indicates whether the bar at the bottom of the screen is hidden when the detail view controller is pushed. Default: TRUE.
Declaration
Objective-C
@property (nonatomic) BOOL hidesBottomBarWhenPushed;