leah / PullToRefresh

A simple iPhone TableViewController for adding pull-to-refresh functionality.
http://blog.leahculver.com/2010/07/iphone-pull-to-refresh.html
MIT License
1.91k stars 252 forks source link

#defines for use with feature obj_arc + protocol for more MVC-like behavior #25

Open johnkdoe opened 12 years ago

johnkdoe commented 12 years ago

some suggested fixes for use with projects that use ARC

1) in the vein of github/jdg/MBProgressHUD.git, add #defines for _STRONG and _WEAK so this can be used for both older non-arc and newer arc-based projects 2) add @protocol PullToRefreshTableViewDelegate to force the implementor to implement their own refresh

also a) silence "redundant" Xcode 4.4 clang warnings in setupStrings by using the suggested fixes for the strings b) also, localize the strings so a project can decide to set these values to whatever makes most sense to the project, and the most sense for each localization c) show how the protocol works in the DemoTableViewController.m