Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pkc456/citylisting

Create a simple mobile application (crash free), with one page (list view) to list all the cities of the world & its population. ● Add a simple search bar with autocomplete text to search based on cities ● Taping on a row should take to details screen showing the information about the city. (Can show only City, Country, Population and Timezone) ● Sort the list by population (ascending / descending)
https://github.com/pkc456/citylisting

autolayout coredata csv-parsing ios swift3 xcode

Last synced: 26 days ago
JSON representation

Create a simple mobile application (crash free), with one page (list view) to list all the cities of the world & its population. ● Add a simple search bar with autocomplete text to search based on cities ● Taping on a row should take to details screen showing the information about the city. (Can show only City, Country, Population and Timezone) ● Sort the list by population (ascending / descending)

Awesome Lists containing this project

README

        

# CityListing

Assignment Details:
Create a simple mobile application (crash free), with one page (list view) to list all
the cities of the world & its population.
● Add a simple search bar with autocomplete text to search based on cities
● Taping on a row should take to details screen showing the information
about the city. (Can show only City, Country, Population and Timezone)
● Sort the list by population (ascending / descending)
Data​: You can download the list (static file) from the link:
http://www.geonames.org/export/.

Project details:
Application flow (architecture)
When the application is launched initially, application reads data from csv file and save the data in core data. To save application launching time, the data is retrieved and saved once only
At Home screen, data is fetched from core data and all the cities are listed on table view.
I keep the static file in CSV format within the application with 588 records
I followed the proper folder structure for view controllers, database, resources files and utilities
For UI, I used storyboards with autolayout
I have implemented the sorting functionality