TextStepperField
TextStepperField copied to clipboard
Not able to set the current for dynamically created TextStepperField control
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];
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