self.tableview crash

Crash since: 

An instance 0x79a8400 of class UITableView was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here’s the current observation info: ( Context: 0x0, Property: 0x738c010> )



– (void)setShowsPullToRefresh:(BOOL)showsPullToRefresh {

    self.pullToRefreshView.hidden = !showsPullToRefresh;


    if(!showsPullToRefresh) {

        if (self.pullToRefreshView.isObserving) {





            self.pullToRefreshView.isObserving = NO;



    else {

        if (!self.pullToRefreshView.isObserving) {




            self.pullToRefreshView.isObserving = YES;


            CGFloat yOrigin = 0;

            switch (self.pullToRefreshView.position) {


                    yOrigin = –SVPullToRefreshViewHeight;



                    yOrigin = self.contentSize.height;




            self.pullToRefreshView.frame = CGRectMake(0, yOrigin, self.bounds.size.width, SVPullToRefreshViewHeight);





Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s