0

How to use UIStepper Control in an IOS Application. I am using monotouch, C# and examples i have seen are not of c#. the following code doesn't show anything.

 UIStepper stepper = new UIStepper();
 var section = new Section();
 section.Add(stepper);
Stephane Delcroix
  • 16,134
  • 5
  • 57
  • 85
sagheer
  • 1,195
  • 1
  • 12
  • 19

1 Answers1

1

This should get you going:

var stepper = new UIStepper(new RectangleF(50, 50, 100, 50));
stepper.MinimumValue = 0;
stepper.MaximumValue = 10;
View.AddSubview(stepper);
stepper.ValueChanged += (object sender, EventArgs e) => Console.WriteLine(stepper.Value);
Stephane Delcroix
  • 16,134
  • 5
  • 57
  • 85
Oliver Weichhold
  • 10,259
  • 5
  • 45
  • 87