GithubHelp home page GithubHelp logo

Comments (5)

alskipp avatar alskipp commented on May 26, 2024 1

Hi @rx2130, it is possible to get things working with a static tableview. I struggled a little initially, but the thing to check is that the cell has Clips to bounds set to false. Also ensure that the IBOutlet in the SliderCell subclass is connected to the slider.

snap

I've just added a new static tableview screen to the example project, please take a look at that โ€“ it's all done purely in Interface Builder.

from asvaluetrackingslider.

alskipp avatar alskipp commented on May 26, 2024

Not sure : (
My best guess is it's something to do with the gradient in your tablecells.
The method to ensure the popup shows above other tablecells is admittedly a bit of a hack, I just can't think of a better way. What is the type of supeview in your use case? If it's not UITableView you might need superview.superview which is truly horrible. ๐Ÿ™€

from asvaluetrackingslider.

 avatar commented on May 26, 2024

@alskipp I tried to implement it in a static tableview using swift 3. But I failed to connect the outlet from storyboard to my UITableViewCell subclass. (I tried to change my tableview to dynamic instead of static, everything works fine.)

Without the outlet I don't know how to prevent the slider being obscured by the cell. I tried to hack around in my TableViewController subclass but with no luck :( Do you know is there any way to solve it?

from asvaluetrackingslider.

 avatar commented on May 26, 2024

@alskipp Thanks for adding the new demo! I got it to work in the end but there're couple thing worth to point out.

  • After setting the subclass properly in storyboard, I was still having trouble to ctrl-drag from Interface Builder to my (swift) code. Eventually I created the @IBOutlet in code and drag from code to storyboard successfully. Guess it's probably a Xcode bug. (I'm using Xcode 8.0 8A218a)
  • I tried to leave Clip To Bounds to true. It doesn't make any difference. I have no idea why this is happening :o

from asvaluetrackingslider.

alskipp avatar alskipp commented on May 26, 2024

@rx2130 Glad it's working ๐Ÿ‘
When I said "purely" in Interface Builder, I suppose that was a bit of a lie : )

What I really meant was that you don't need to add any code to your tableview controller, but you do need to declare the IBOutlet in the table cell subclass and handle the delegate method there.

No idea why keeping Clips To Bounds to true still works!?

from asvaluetrackingslider.

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.