Questions tagged [uistepper]

A UIStepper control provides a user interface for incrementing or decrementing a value.

A UIStepper displays two buttons, one with a minus ("–") symbol and one with a plus ("+") symbol. The bounding rectangle for a stepper matches that of a UISwitch object.

If you set stepper behavior to autorepeat (which is the default), pressing and holding one of its buttons increments or decrements the stepper’s value repeatedly. The rate of change depends on how long the user continues pressing the control.

Apple Documentation

224 questions
0
votes
2 answers

Altering Stepper values to work as time values?

I want to have my stepper be used to add minutes to a timer. The stepper outputs + or - 1 by default, i am then using *60 to make it a minute, but this makes my timer display the total number of seconds in my timer rather than minutes. e.g. pressing…
infernouk
  • 1,137
  • 4
  • 13
  • 21
0
votes
2 answers

How do I use UIStepper to change a property in a Realm Model Object?

I currently have a ViewController with a TableView inside it called SelectedListItemsViewController. This ViewController's TableView is populated by a custom cell class called SelectedListItemsTableViewCell. I have an array of Realm Model Objects…
MachTurtle
  • 220
  • 3
  • 10
0
votes
1 answer

React.js stepper

Hello I am trying to build my footer which is basically a stepper that would inform users where they are in the app. Footer(Stepper) component : export default class Footer extends Component { render() { return (
user1780729
  • 520
  • 1
  • 7
  • 24
0
votes
2 answers

UIStepper value increments random numbers

I have designed a custom cell in the Interface Builder. This is a reusable cell of a e-commerce cart app.The problem lies with the UIStepper.I can have any number of these cells based on the number of items user adds to the cart.So the issue is that…
Haseeb Mohamed
  • 1,459
  • 1
  • 11
  • 15
0
votes
4 answers

Use stepper as increaser/decreaser in Swift

How can I use UIStepper as simple increaser/decreaser? The only way I've found is to set the value of the UIStepper to 1 each time I detect an action and compare the value to 1 when I catch an action: @IBAction func…
Jojo56400
  • 309
  • 3
  • 12
0
votes
1 answer

Simple Swift Stepper error

I'm new to Swift and am experimenting with things such as the stepper. I followed online step-by-step instructions on how to make one but I'm getting an error (Attached below) and I am not quite understanding where the issue is. Error: 2016-06-04…
Ryan Cocuzzo
  • 3,109
  • 7
  • 35
  • 64
0
votes
2 answers

UIStepper.value becomes scientific notation

This is my code: @IBAction func stepperChanged(sender: AnyObject) { let stepper = sender as! UIStepper stepper.stepValue = 0.1 stepper.minimumValue = 0.0 stepper.maximumValue = 1.0 print("stepper value: \(stepper.value)") } When…
Brian
  • 30,156
  • 15
  • 86
  • 87
0
votes
2 answers

Resetting the value of a UIStepper

I have a bunch of UIsteppers, and I have a button that resets them. I can set the labels to zero, but the internal count on the stepper doesn't change. I tried doing "stepper.value" but I'm getting the error "UIStepper has no member value" @IBAction…
user3015221
  • 125
  • 1
  • 6
0
votes
0 answers

UIStepper value not change in Uitableviewcell

I have added UIStepper in Custom UItableviewcell Programatically. func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCellWithIdentifier("subServiceCell",…
0
votes
1 answer

Store previous value from stepper in swift

The logic from here Stepper value reset after loaded from coredate doesn't work with me plus its in obj C. I have a label and stepper, i need the value in the label to act as a counter almost. Currently, when i close and reopen the views the core…
redbeam
  • 1
  • 2
0
votes
1 answer

How can I change UIStepper value when changed from UITextField?

I'm very new to all of this and I found some code that got me understanding some of this syntax. I'm trying to create a textfield that lets me type in a value that updates the stepper's value. The stepper currently works (updates the uitextfield)…
Erik
  • 3
  • 1
  • 6
0
votes
1 answer

Delegate error for UIStepper in TableViewCell and TableViewController

I have an issue with my delegate for UIStepper, TableViewCell and TableViewController. I am unable to pass a delegate command to my TableViewCell in the TableViewController. My TableViewCell code is as below: CampTableCell.swift import…
0
votes
1 answer

Stepper not updating

I have two steppers in a ViewController, one called homeStepper the other called awayStepper. When I run the app on my phone the value for homeStepper changes just fine, however nothing happens when I try to use the awayStepper. I added log…
Zach443
  • 311
  • 1
  • 2
  • 12
0
votes
1 answer

Label data is erased when I back to the screen from tableview in iOS

Here is my JSON response with label value. { "Dry_cleaning" = 49; Iron = 8; Name = "Shirt/Tees"; Wash = 15; "Wash_Iron" = 19; counts = 2; id = 1; total = 98; }, { …
Jigar
  • 1,801
  • 1
  • 14
  • 29
0
votes
2 answers

Json issue in tableview with stepper and lable

I am new in ios developer. I want to selected data into other tableview my problem is i dont know how to get the name and quantity. See here is my screen shot My json data like this format { Data = ( { …
Arpit Patel
  • 7,212
  • 5
  • 56
  • 67