This app is written in swift allows users to query movies by name fetching from the webservice http://api.themoviedb.org it uses these libraries :
- Alamorfire
- SwiftyJSON
- SDWebImage
- ARSLineProgress
It contains a :
- SearchTableViewController which has the search bar and a table to show the last 10 positive search terms showing on focus into search bar
- ResultTableViewController which has the result table that shows the result that came from the webservice response and contains the MovieCell
- MovieObj object which is the model that contains the movie data and the method to query the data from the webservice
- MovieCell a view that shows the poster image , movie name , release data , overview
- CacheManager a class that used to insert and update and clear the cache it uses NSKeyedArchiver to archive the data
- Storyboards used here as Interface Builder and autolayout are used to create the UI. 7.MovieAppUITest : it uses ui test to test the search and the pick from the suggestions in the table
Methods:
- configureSearchBarController() : initialize and configure searchbar controller
- QueryForMovie(text:String) : method to save the query and go to result page and to query the text from the webservice
- ConfigureTableView() : Configure the tableview so the cells will be dynamic in height
- addPullToRefresh() : add pull to refresh mechanism to the tableview
- handleRefresh() : method to call after pull to referesh to update the list
- UpdateRecentSearchCache() : Method to insert the query to suggestions or update it through the CacheManager