File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
=======================================================================
2
2
WorldFacts
3
3
4
+ Version 3.1 25 May 2015 Increase width of split view master view
4
5
Version 3.0 27 Mar 2015 Add OS X application to create core data
5
6
Version 2.0 16 Feb 2014 Update for iOS 8 and UISearchController
6
7
Version 1.5 20 Feb 2013 Move core data file to App Support dir
@@ -49,6 +50,11 @@ interface to Core Data are covered in the following post:
49
50
50
51
useyourloaf.com/blog/2015/03/25/creating-an-os-x-core-data-helper-app.html
51
52
53
+ To see details on how to increase the width of the master view of the split
54
+ view controller see the following post:
55
+
56
+ useyourloaf.com/blog/2015/05/25/change-the-width-of-master-view-in-split-view-controller.html
57
+
52
58
The geographic data used in this App is from GeoNames and used under
53
59
the Creative Commons Attributions License (see www.geonames.org).
54
60
Original file line number Diff line number Diff line change 3
3
// WorldFacts
4
4
//
5
5
// Created by Keith Harrison http://useyourloaf.com
6
- // Copyright (c) 2012-2014 Keith Harrison. All rights reserved.
6
+ // Copyright (c) 2012-2015 Keith Harrison. All rights reserved.
7
7
//
8
8
// Redistribution and use in source and binary forms, with or without
9
9
// modification, are permitted provided that the following conditions are met:
@@ -56,6 +56,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
56
56
splitViewController.delegate = self;
57
57
splitViewController.preferredDisplayMode = UISplitViewControllerDisplayModeAllVisible;
58
58
59
+ CGFloat minimumWidth = MIN (CGRectGetWidth (splitViewController.view .bounds ),CGRectGetHeight (splitViewController.view .bounds ));
60
+ splitViewController.minimumPrimaryColumnWidth = minimumWidth / 2 ;
61
+ splitViewController.maximumPrimaryColumnWidth = minimumWidth;
62
+
59
63
UINavigationController *masterNavigationController = splitViewController.viewControllers [0 ];
60
64
UYLCountryTableViewController *controller = (UYLCountryTableViewController *)masterNavigationController.topViewController ;
61
65
controller.managedObjectContext = self.managedObjectContext ;
You can’t perform that action at this time.
0 commit comments