Giter VIP home page Giter VIP logo

Comments (3)

timbroder avatar timbroder commented on July 23, 2024

@inkrementz you may be able to try @praneeth03's approach in #29. Not ideal but it seems to work

from scrollablegraphview.

inkrementz avatar inkrementz commented on July 23, 2024

Not sure, I have a segmentation fault 11 :(
I m trying to use buttons on top of each x-axis label but it's like a battle to undestand how and where to change it in the source code :/ and of course to add the tapgesture... for the moment I add on the setup():
for labelView in labelsView.subviews {
let bouton = UIButton(frame: labelView.frame)
bouton.backgroundColor = UIColor.clearColor()
bouton.addTarget(self, action: #selector(ScrollableGraphView.tapDateButton(_:)), forControlEvents: .TouchDown)
self.addSubview(bouton)
self.bringSubviewToFront(bouton)
}

it works but it randomize the buttons (of course yes!), I mean if I touche the first label (button here) on the x-axis, it is not necessary the first button which was created from my code.
It's almost the solution but...not really working ! :)

from scrollablegraphview.

timbroder avatar timbroder commented on July 23, 2024

@inkrementz I had the seg fault issue also. (after I replied to you, sorry)

I was able to get around it by using an extension

So now I'm doing what I needed to do on scroll (firing events depending on where the contentOffset is) in there

from scrollablegraphview.

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.