search

Home  >  Q&A  >  body text

ios - 代理(Delegate) no know instance method for selector ""

巴扎黑巴扎黑2773 days ago789

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 17:50:54

    Use weak when declaring a proxy

    reply
    0
  • PHPz

    PHPz2017-04-17 17:50:54

    The tabBarDidClickAddBtn: method is not declared in the protocol that self.delegate complies with, just declare it

    reply
    0
  • PHPz

    PHPz2017-04-17 17:50:54

    The error report has made it very clear: there is no tabBarDidClickAddBtn: method in the class corresponding to your self.delegate.

    If you want to bypass it, you can try [self.delegate performSelector:@selector(tabBarDidClickAddBtn:) withObject:self].

    reply
    0
  • Cancelreply