Comments (5)
I am having the same issue. I have the stepper in 10 rows in a Uitableviewcell. If you start scrolling the addTarget method fires even though the button was not touched. I guess it is firing once the cell gets dequeued. Anyway to fix that behavior?
from gmstepper.
@kalmicka
cell.stepper.value = count
Setting value to stepper programmatically also fire .ValueChanged
event. Maybe you set value to stepper somewhere in cellForRowAt
from gmstepper.
Hi @longxianlin, can you elaborate on what is not working?
from gmstepper.
I'm also having an issue with GMStepper in a tableviewcell.
I don't have the issue quite pinned down yet, but occasionally when quickly scrolling through the list, I'll see this issue:
`
@IBAction func onStepperValueChanged(_ sender: GMStepper) {
print("stepper (sender.value)) // this line runs 2nd, value is 2
}
// MARK: Local Func
func setContent(quantity: Double) {
stepper.value = quantity
print("set content: \(stepper.value)") // this line runs 1st, value is 1
`
from gmstepper.
Any solution to this?
from gmstepper.
Related Issues (20)
- Delegate method for "valueDidUpdate:" and "valueShouldUpdate:" HOT 3
- Carthage HOT 1
- Any easy way to modify it to able to type value manually? HOT 4
- Swift 3 support HOT 2
- Should the GMStepper class be open? HOT 2
- Allow "timerFireCountModulo" to be changed HOT 1
- Stepper value changed from 1 HOT 2
- Swift 2.3 with Xcode 8
- it will be much better if it was a textfield not a label !
- Double rounding
- Swift 4.0 Explicit @objc Attribute Required HOT 1
- reset() causing crash
- Dependency "ValueStepper" has no shared framework schemes
- Button Modifications HOT 2
- How to have formatted text on the middle label ?
- How do I get to know GMStepper is Selected? because isSelected bool value is not working
- Remove right border of left button and left border of right button
- Argument labels '(stringInterpolationSegment:)' do not match any available overloads HOT 3
- How to know which button tapped Plus or Minus HOT 1
- How to make stepper button round from inner side also
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 gmstepper.