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
39
votes
5 answers

How to use UIStepper

I am trying to work with UIStepper to increment or decrement an integer, but both "-" and "+" increase the integer! How can I recognize the "+" and "-" button? In the UIStepper header file there are two UIButtons: UIButton *_plusButton; UIButton…
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162
7
votes
8 answers

UIStepper - Find out whether it is incremented or decremented

Figuring out whether the plus or minus button was pressed in UIStepper I use this method: - (void)stepperOneChanged:(UIStepper*)stepperOne And I compare stepperOne.value with a global value saved in my TableView Class. I dont think this is the…
M.C.
  • 1,765
  • 3
  • 29
  • 31
6
votes
4 answers

Stepper on tableview cell (swift)

I put stepper both outlets and action into tableview cell and using protocol delegate to connect it to tableview. When i tapped stepper in first row, stepper value appear normaly in first row but its also appear in some random row. how to fix…
Aldo Lazuardi
  • 1,898
  • 2
  • 19
  • 34
5
votes
7 answers

Changing the size of UIStepper

I can't seem to change the size of UIStepper: In IB, the Width and Height boxes are grayed out. I used initWithFrame: UIStepper *stepper = [[UIStepper alloc] initWithFrame:CGRectMake(300, 638, 120, 80)]; But it does not change the size. …
user523234
  • 14,323
  • 10
  • 62
  • 102
4
votes
1 answer

How to remove padding from Flutter built-in stepper widget

I want to remove the padding of Flutter's stepper widget in order to create control buttons that don't have any space between them and the horizontal edges of the screen. What I've tried: I've found this similar question, where the answer says the…
siegjor
  • 41
  • 4
4
votes
2 answers

Stepper(increase/decrease value) control for Android?

In iOS, there is the Stepper control that has a plus and minus button to change a value. I could not find a similar control in both the Android developer and the material design documentation. What is the "official Android way" of doing an…
PastAndSalmon
  • 175
  • 2
  • 11
4
votes
1 answer

Is there a stepper for Materializecss framework?

Is there any way or any plugin to make a stepper using Materializecss framework and following the Material Design guidelines?
Malork
  • 216
  • 5
  • 13
4
votes
2 answers

UIStepper: how to be aware which button (minus or plus button) of the stepper has been clicked by user

How do I possibly know which button(minus or plus button) of the stepper has been clicked by user? - (IBAction)buttonStepper:(id)sender { int stepperValue = self.outletStepper.value; self.label.text = [NSString stringWithFormat:@"%d",…
vegligi
  • 61
  • 1
  • 5
3
votes
1 answer

Updating UITableView section header text when using UIStepper continuous repeat

I have a UITableView with multiple sections, each having multiple cells with discrete UIStepper controls. Upon tapping and holding each cell’s UIStepper a companion UILabel is updated with the current UIStepper value, as required. This is working…
creednmd
  • 2,001
  • 2
  • 18
  • 25
3
votes
2 answers

Store value in UIStepper class

I have stepper in my UITableViewCells. I saw from other answers that people are using UIStepper.tag to pass the indexPath.row , but I have sections in my UITableView and I need to save the indexPath directly in the class UIStepper. extension…
Bogdan Bogdanov
  • 882
  • 11
  • 36
  • 79
3
votes
2 answers

Swift - Increment Label with Stepper in TableView Cell

Another Swift beginner here. I simply want a Stepper in each of my TableView cells that increments a label in the same cell. I have found a couple of questions on this topic, but they include other elements and I haven't been able to extract the…
Louis Sankey
  • 481
  • 8
  • 26
3
votes
0 answers

UIStepper subclass,where to apply custom styling?

I am subclassing UIStepper and I'd like to apply some custom styling. I am doing using following method… func setupStepper() { let incrementImageFromFile : UIImage = UIImage(named: "plusSymbol")! let incrementImage : UIImage =…
Bernd
  • 11,133
  • 11
  • 65
  • 98
3
votes
1 answer

how to add json and stepper value store in using button click event nsmutablearray in ios

i am new in ios developer.i want to store json and stepper value.i have already store json and stepper value is nsmutablearray but problem is when i back to the screen that time this array new value is overwrite to old value.but i want to store old…
Jigar
  • 1,801
  • 1
  • 14
  • 29
3
votes
3 answers

Can't create IBAction connections in Xcode 5 Storyboard

A seemingly very basic problem, but it's frustrating me to no end and stalling progress. When I click and drag from a UIButton or UIStepper onto the View Controller, the option to add IBAction connections aren't listed. The View Controller is called…
Sebastian
  • 3,548
  • 18
  • 60
  • 95
3
votes
2 answers

Set color of UITextfield based on numeric value using an If-statement in Objective-C

I currently use a UIStepper in a custom UITableViewCell hooked up to a UITextField to have people select how many items they want to add to their Shopping Cart. To check if the object is in stock, I've got two numbers: The LocalStock and the…
blaa
  • 438
  • 5
  • 19
1
2 3
14 15