New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App crashes when adding the SVPullToRefresh view to UITableView #41
Comments
@jimit are you importing SVPullToRefresh.h? Are you getting a compiler warning about |
I have checked everything. I don't get any warnings. The app runs just fine but as soon as I get to that view controller the app crashes and I get the error mentioned above. |
@jimit can you show me the code you're using to setup SVPullToRefresh? |
#import "JCoffeeListViewController.h" @interface JCoffeeListViewController () @synthesize tableView = _tableView; @implementation JCoffeeListViewController
} |
Corrected** #import "JCoffeeListViewController.h" @interface JCoffeeListViewController () @implementation JCoffeeListViewController @synthesize tableView = _tableView; (void)viewDidLoad //Add the pull down to refresh view }]; } |
@jimit jeez I really have no idea, your code looks fine. I'm really puzzled... Which version of iOS are you running this on? And just to be sure, the demo project does work for you? |
I had the same feeling. I can't seems to find why its behaving like this. I am running it on iOS 5.1.1 and the demo works for me. I will keep you posted as soon as I figure it out. |
I've got the same problem. However, I remove the original source files of SVPullToRefresh. When I copy&paste, I selected the "add to target" option in Xcode. Finally, that's works fine. |
@krafttuc Thanks for the tip. Somehow I had my unit test as the selected target. It works for me. @samvermette Thanks again. |
I followed the required steps to add the SVPullToRefreshView but it doesn't seems to work. I get following error.
-[UITableView addPullToRefreshWithActionHandler:]: unrecognized selector sent to instance
Any idea? Thanks
The text was updated successfully, but these errors were encountered: