andrewsardone + uiviewcontroller   10

benpackard/BENTweetbotHeader
Example project for implementing a Tweetbot-style parallax blurred and scrolling profile cover image.

via http://cocoacovers.com/blog/2014/03/31/the-zooming-blurring-profile-photo-by-tweetbot/

I haven’t thoroughly looked at the code, but putting aside to hopefully learn some auto layout tricks
UIViewController  ios  UIView  autolayout  github_repo 
june 2014 by andrewsardone
Intentions | Chris Eidhof
A good example of extracting behavior out of large UIViewControllers and into reusable objects that the author calls intentions. These plain objects compose very well right from Interface Builder, injected with dynamic behavior via IB’s runtime attributes.

Something like the ObserveIntention makes totaly sense – a reusable object for configuring a binding between a source and a target – but some of the other intention objects seem awkward given their ties to delegate interfaces. The model containers also seem to be a smelly layer of indirection to compensate for IB and nibs’ shortcomings around runtime outlets.
architecture  development  ios  uiviewcontroller  oop  interfacebuilder 
may 2014 by andrewsardone
jaredsinclair/JTSImageViewController
An interactive iOS image viewer that does it all: double tap to zoom, flick to dismiss, et cetera.


Tweetbot-style fullscreen image viewing and flicking.
ios  ios7  github_repo  UIImageView  UIViewController  UIKit  UIImage  cocoa 
march 2014 by andrewsardone
stepanhruda/STPTransitions
Unified, easy API for custom iOS view controller transitioning
github_repo  ios  cocoa_touch  ios7  uiviewcontroller  via:cdzombak 
february 2014 by andrewsardone
jordanekay/Mensa
Smart, modern table views on iOS.


Yes, god damn it, this is the way it should be:
Use of UIViewControllers in table view cells and runtime generation of cell classes for specific view controllers

This is useful because table cells aren’t usable outside of tables. By hosting content inside a view controller and then hosting that view controller inside a cell you can reuse that UI in other parts of your app very easily. This is often handy.</blockquote
github_repo  uitableview  uitableviewcell  uiviewcontroller  UIKit  ios  autolayout 
december 2013 by andrewsardone
iOS7 interactive transitions
A nice example of adapting a standard UINavigationController to use a custom interactive transition via UIViewControllerAnimatedTransitioning and UIViewControllerInteractiveTransitioning. It's pretty awesome.
ios  ios7  animation  UIViewController 
october 2013 by andrewsardone
How to avoid big and clumsy UITableViewController on iOS?
A good answer from Graham Lee on separating the different concerns of a view controller and a UITableView (and its various data source and delegate components).

Lee builds upon the good common practice of breaking UITableViewDataSource/UITableViewDelegate implementations out of your view controller and into separate objects and provides some additional opinions and best practices:

1.) The UiTableViewDataSource object should expose an additional interface:

-(id)tableView: (UITableView *)tableView representedObjectAtIndexPath: (NSIndexPath *)indexPath

This provides a mechanism to grab the object that's mapped to the given index path within the table view.

2.) The next bit involves improving the creation of different UITableViewCell objects for the different represented objects at various index paths. Lee does this by adding category methods to his represented objects that decorate the model with UITableViewCell generation abilities. This way he can grab the represented object at the given index path, and then execute something like:

return [object tableView:tableView representationAsCellForRowAtIndexPath:indexPath];

within -[UITableViewDataSource tableView:cellForRowAtIndexPath:]
ios  cocoa  uitableview  designpattern  uiviewcontroller  decoratorpattern 
december 2012 by andrewsardone

Copy this bookmark:



description:


tags: