Skip to content

Commit 93fd2db

Browse files
adds little gap between master and details view and adds black background
1 parent 2e16724 commit 93fd2db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CTSplitViewController/CTSplitViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ - (CGRect)hiddenMasterFrame
9292

9393
- (CGRect)visibleMasterDetailsFrame
9494
{
95-
return CGRectMake(self.masterViewControllerWidth, 0.0f, CGRectGetWidth(self.view.bounds) - self.masterViewControllerWidth, CGRectGetHeight(self.view.bounds));
95+
return CGRectMake(self.masterViewControllerWidth + 1.0f, 0.0f, CGRectGetWidth(self.view.bounds) - self.masterViewControllerWidth - 1.0f, CGRectGetHeight(self.view.bounds));
9696
}
9797

9898
- (CGRect)hiddenMasterDetailsFrame
@@ -218,6 +218,7 @@ - (void)didReceiveMemoryWarning
218218

219219
- (void)loadView {
220220
[super loadView];
221+
self.view.backgroundColor = [UIColor blackColor];
221222

222223
// first load _detailsView because its always visible
223224
[self.detailsViewController viewWillAppear:NO];

0 commit comments

Comments
 (0)