ericsoco / gratintomatoes Goto Github PK
View Code? Open in Web Editor NEWRottenTomatoes client for CodePath iOS class, Spring 2014.
RottenTomatoes client for CodePath iOS class, Spring 2014.
/cc @nesquena @timothy1ee
As I mentioned to Tim, I went down the wrong road from the beginning by subclassing UITableViewController instead of UITableView, which made it harder to add things like the network error notification and the search bar. (I'd be curious to know if there's an easy way to dig myself out of that hole...)
However, I customized a TSMessage to look more like the network error mock (Android), so I managed to get something in place for that. Also added a font thanks to some help from Jessica on the FB group and a Tab Bar Controller (surprisingly easy). I also added some code to test handling a malformed server response.
Other things I'd like to do (someday) include infinite scroll (fetch the next page of results when near the bottom of the current list), placeholder images, and gestural navigation (swipe to move from detail back to list view).
Also, I'm currently using AFNetworking's setImageWithURLRequest
after each dequeueReusableCellWithIdentifier
, which seems wasteful; an optimization would be to load the UIImage and store it in the MovieModel and only populate the UIImageView of the cell after dequeueReusableCellWithIdentifier
.
Finally, I'm not sure why the detail view doesn't animate completely off the screen before it pops off the stack -- it only scrolls most of the way off and then leaves an ugly transition just at the end.
Guess that's about it. Total time somewhere around 12 hours.
By the way, the example issue-as-homework-submission you link to from the Canvas page is broken.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.