SCSCaseListViewController
@interface SCSCaseListViewController : UIViewController
View controller that shows a list of cases for a particular user.
This controller assumes that it will be presented within an instance of UINavigationController
.
If you aren’t pushing this controller onto a navigation controller stack, present it within
a new navigation controller instance.
SCSCaseListViewController *caseController = [SCSCaseListViewController new];
UINavigationController *navigationController = [[UINavigationController alloc]
initWithRootViewController:caseController];
[self presentViewController:navigationController animated:YES completion:nil];
Warning
If you instantiate this view controller and display it manually, you’ll also need to displaySCSCaseDetailViewController
. When a user
selects a case from the case list, present your Case Detail view controller
from the -[SCSCaseListViewControllerDelegate caseList:selectedCaseWithId:]
method in your SCSCaseListViewControllerDelegate
implementation. If you don’t
do this, nothing will happen when a user taps on a specific case in the case list!
-
Delegate for the case list view controller.
Declaration
Objective-C
@property (nonatomic, weak, nullable) NSObject<SCSCaseListViewControllerDelegate> *delegate;
Swift
weak var delegate: SCSCaseListViewControllerDelegate? { get set }