Git Product home page Git Product logo

Comments (5)

liuxuan30 avatar liuxuan30 commented on June 16, 2024

From the trace, seems you are sending scrollViewDidScroll to NSCFString, or NSString? It's super weird for a delegate to be NSString. Add a breakpoint to see where the delegate is called.

from blkflexibleheightbar.

WilliamHua avatar WilliamHua commented on June 16, 2024

Sorry but after I put in a breakpoint do I have to type something into the console to see where the delegate is called?

A quick fix I made was just to use my original ViewController as the delegate and call the behaviorDefiner from the ViewController.

from blkflexibleheightbar.

liuxuan30 avatar liuxuan30 commented on June 16, 2024

for lldb, type bt for back trace or po $obj to check the objects.

from blkflexibleheightbar.

liuxuan30 avatar liuxuan30 commented on June 16, 2024

the delegate spliter works fine on my side, but you have to know, if both of your delegates has the same method implemented, only first delegate will get the method call. For example, if both delegates wait for scrollViewDidScroll, only first delegate will get the call. So you may need to change the BLK source code to get correct forward.

from blkflexibleheightbar.

pomarec avatar pomarec commented on June 16, 2024

@liuxuan30 I think what you say is incorrect.
My guess @WilliamHua is that the delegate property of your tableview is weak, thus you need to keep a strong reference to BLKDelegateSplitter somewhere

from blkflexibleheightbar.

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.