Giter Club home page Giter Club logo

Comments (9)

samvermette avatar samvermette commented on August 29, 2024

@jimit are you importing SVPullToRefresh.h? Are you getting a compiler warning about addPullToRefreshWithActionHandler: ? I'm pretty sure you must be missing something. Have a look at the demo project to see what you might be doing wrong.

from svpulltorefresh.

jimit avatar jimit commented on August 29, 2024

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.

from svpulltorefresh.

samvermette avatar samvermette commented on August 29, 2024

@jimit can you show me the code you're using to setup SVPullToRefresh?

from svpulltorefresh.

jimit avatar jimit commented on August 29, 2024

#import "JCoffeeListViewController.h"
#import "SVPullToRefresh.h"

@interface JCoffeeListViewController ()

@synthesize tableView = _tableView;

@implementation JCoffeeListViewController

  • (void)viewDidLoad
    {
    [super viewDidLoad];

    //Add the pull down to refresh view
    [self.tableView addPullToRefreshWithActionHandler:^{
    NSLog(@"It's working");
    }];

}

from svpulltorefresh.

jimit avatar jimit commented on August 29, 2024

Corrected**

#import "JCoffeeListViewController.h"
#import "SVPullToRefresh.h"

@interface JCoffeeListViewController ()

@implementation JCoffeeListViewController

@synthesize tableView = _tableView;

(void)viewDidLoad
{
[super viewDidLoad];

//Add the pull down to refresh view
[self.tableView addPullToRefreshWithActionHandler:^{
NSLog(@"It's working");

}];

}

from svpulltorefresh.

samvermette avatar samvermette commented on August 29, 2024

@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?

from svpulltorefresh.

jimit avatar jimit commented on August 29, 2024

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.

from svpulltorefresh.

yimingtang avatar yimingtang commented on August 29, 2024

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.

from svpulltorefresh.

jimit avatar jimit commented on August 29, 2024

@krafttuc Thanks for the tip. Somehow I had my unit test as the selected target. It works for me.

@samvermette Thanks again.

from svpulltorefresh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.