TextStepperField icon indicating copy to clipboard operation
TextStepperField copied to clipboard

Not able to set the current for dynamically created TextStepperField control

Open azamsharp opened this issue 12 years ago • 1 comments

I am creating my control dynamically but it is not setting the current or even the placeholder:

TextStepperField *textStepperField = [[TextStepperField alloc] initWithFrame:CGRectMake(0, 0, cell.contributionChangeInputView.frame.size.width, cell.contributionChangeInputView.frame.size.height)];

[textStepperField setMinimum:0]; [textStepperField setMaximum:100]; textStepperField.tag = 11;

[textStepperField setCurrent:4.5]; <---- THIS DOES NOT DO ANYTHING

[cell.MyView addSubview:textStepperField];

azamsharp avatar May 01 '13 21:05 azamsharp

Hi, I think the problem is due to not initialize the method "NumDecimals" as by default does not support decimal (NumDecimals == 0). Try this, if it does not work let me know. thanks

lolohouse avatar May 02 '13 06:05 lolohouse