TeehanLax / UITableViewCell-Swipe-for-Options

A reproduction of the iOS 7 Mail app's swipe-to-reveal options
http://www.teehanlax.com/blog/reproducing-the-ios-7-mail-apps-interface/
MIT License
615 stars 99 forks source link

Removed tableViewCell property from custom UIScrollView, now uses its superview #8

Open aout opened 10 years ago

aout commented 10 years ago

Any subclass would override the content view, leaving the custom scroll view with a nil ptr. I guess this is less flexible but we could even nest the custom scroll view inside the cell itself to make it opaque for the end user.

ashfurrow commented 10 years ago

Yeah, I don't know. What about having the property is bad? I mean, I don't like to rely on the view hierarchy implicitly.

aout commented 10 years ago

I think it's just a matter of situation. I didn't find any solution with a subclass and multiple XiBs for quick prototyping. I wanted to keep the code very neat and defer all the work to the IB. This way I can design my "front" view and my "back" view (I tweaked it a bit too) knowing I don't have anything to do but plug the IBOutlets.