1
1
=======================================================================
2
2
WorldFacts
3
3
4
+ Version 2.0 16 Feb 2014 Update for iOS 8 and UISearchController
4
5
Version 1.5 20 Feb 2013 Move core data file to App Support dir
5
6
Version 1.4 31 Dec 2012 Add default launch images to support retina
6
7
4 inch display
@@ -10,13 +11,10 @@ Version 1.1 21 June 2012 Add Storyboard segue to country view
10
11
Version 1.0 6 June 2012 Initial Version
11
12
=======================================================================
12
13
13
- The WorldFacts App demonstrates how to use Storyboards to create a
14
- dynamic table view cell using a prototype cell. This is a big
15
- improvement over iOS 4 where it was necessary to design the cell
16
- in a separate NIB and then manually load it and instantiate each
17
- cell.
18
-
19
- For further details see:
14
+ The WorldFacts App has gone through a number of iterations over the
15
+ years as the capabilities of iOS have changed. Originally it started
16
+ as an example of how to construct custom table view cells with a
17
+ storyboard. For further details see the post:
20
18
21
19
useyourloaf.com/blog/2012/06/07/prototype-cells-and-storyboards.html
22
20
@@ -30,6 +28,20 @@ in the following post:
30
28
31
29
useyourloaf.com/blog/2012/09/06/search-bar-table-view-storyboard.html
32
30
31
+ The release of iOS 8 saw a number of changes to update and modernise
32
+ the code:
33
+
34
+ + UISearchDisplayController is deprecated and replaced by the much
35
+ cleaner UISearchController
36
+ + Modules are now used instead of precompiled headers
37
+ + The Storyboard is now universal
38
+ + Include a launch screen storyboard
39
+ + Autolayout is used
40
+ + Dynamic Type is used for the content
41
+ + Asset Catalogs for the icons and images
42
+ + Base Internationalization
43
+ + Remove old orientation handling code.
44
+
33
45
The geographic data used in this App is from GeoNames and used under
34
46
the Creative Commons Attributions License (see www.geonames.org).
35
47
@@ -59,27 +71,9 @@ to import an initial set of geographic data from countries.plist.
59
71
View
60
72
=======================================================================
61
73
62
- Country.storyboard
63
- The storyboard file used to create the table view and custom prototype
64
- cell.
74
+ Main.storyboard
75
+ The universal storyboard file used to create the table and details view
65
76
66
- UYLCountryTableViewController.xib
67
- Traditional NIB file used to load the country table view when not using
68
- a storyboard. This NIB file is not used in the final version of the App
69
- but is included for reference. If you want to revert back to
70
- using this NIB you will need to add it to the target.
71
-
72
- CountryCell.xib
73
- Traditional NIB file used to create the custom table view cell when not
74
- using a storyboard. This NIB file is not used in the final version of
75
- the App but is included for reference. If you want to revert back to
76
- using this NIB you will need to add it to the target.
77
-
78
- UYLCountryViewController.xib
79
- Traditional NIB file used to show the country detail view when not using
80
- a storyboard. This NIB file is not used in the final version of the App
81
- but is included for reference. If you want to revert back to using this
82
- NIB you will need to add it to the target.
83
77
84
78
=======================================================================
85
79
Controllers
@@ -89,12 +83,9 @@ UYLCountryTableViewController.h
89
83
UYLCountryTableViewController.m
90
84
91
85
The table view controller used to show the list of countries with
92
- details on the capital and population in a custom cell layout. The
93
- table view controller implementation is a standard implementation of
94
- an NSFetchResultsController.
95
-
96
- The key code showing how the cell NIB is loaded is contained in the
97
- method -tableView:cellForRowAtIndexPath:.
86
+ details on the capital and population and manage the search interface.
87
+ The table view controller implementation is a standard implementation
88
+ of an NSFetchResultsController.
98
89
99
90
UYLCountryViewController.h
100
91
UYLCountryViewController.m
0 commit comments