Comments (5)
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
.
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.
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.
@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.
@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.
@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)
- slider
- Add "tap to slide' feature HOT 1
- left side of bar color looses color when cell is reused HOT 1
- Compiler warning on Xcode 8 GM + fix HOT 1
- The document โMain.storyboardโ requires Xcode 8.0 or later. HOT 2
- Keep popup open HOT 2
- Feature request: vertical slider? HOT 1
- Slider over borders will show incomplete HOT 2
- Tap to Slide
- Accessibility Support
- Carthage support
- PopupView background color change
- Create Slider Programmatically
- range slider HOT 1
- Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ASValueTrackingSlider name]: unrecognized selector sent to instance 0x10218d2a0' HOT 1
- Multiple line popup text implicit animations
- Difficult to slide the exact value HOT 1
- pop up doesnt show on swift project HOT 2
- Popup off center on min and max value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asvaluetrackingslider.