I don't think that's what I am looking for - my problem is not really with the "Detail" view of the STV but the Master/main part of the STV which does not show any data when it is placed inside the SplitView Detail view.
I am using the "Master" part of the SplitView to select which STV will be shown in the "Detail" controller and doing so via a static table and Show Detail Seques
This method works with other tableviewcontrollers but STV seems to assume that because it's inside a SplitView it has to behave in a specific way - I was hoping there were some simple overrides that I could do to prevent this from happening and STV to behave as it does when it is not inside a SplitView.
I have a lot of settings and lookup tables that I store in Parse and was hoping to have one splitview where I could select the table to work with on the left and have STV take care of all the data stuff on the right - seemed a very good idea until I realised that STV does not work as expected inside the detail part of a splitview.
Anyway, thanks for taking a look.
yup there is lots of built in STV code that is detecting splitview controllers and what in the detail view etc and taking control of it
however this might be what you need to use to work.. when you select the cell control what the custom view you want to show
Action gets called to give you the chance to return a custom detail view controller for the cell.
@property (nonatomic, copy) SCCellDetailViewControllerAction_Block detailViewController
The custom view controller. Must only be of type SCViewController or SCTableViewController. Note: returning nil ignores the implementation of this action.
cellActions.detailViewController = ^UIViewController*(SCTableViewCell *cell, NSIndexPath *indexPath)
MyCustomViewController *customVC = [[MyCustomViewController alloc] initWithNib:@"MyCustomViewController" bundle:nil];
(cell, indexPath)->UIViewController in
let customVC = MyCustomViewController(nibName: "MyCustomViewController", bundle: nil)
This action is typically used to provide your own custom detail view controller, instead of the one automatically generated by the cell.
Edited by halldorg, 04 January 2016 - 04:23 PM.