This is a migrated thread and some comments may be shown as answers.

Bug with TKDataFormNumberEditor

3 Answers 50 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bhauvik T
Top achievements
Rank 1
Bhauvik T asked on 09 Feb 2016, 03:08 AM

I'm using version UI for iOS Q1 2016. When we set the editor class of a string Field with TKDataFormNumberEditor, the app will crash with error message :

 [__NSCFNumber length]: unrecognized selector sent to instance

 For example :

        class CardInfo: NSObject {
           var CardNumber = ""
        }

        ------------------------------------------------------------------------------- 

        dataSource["CardNumber"].hintText = "Card Number"

        dataSource["CardNumber"].editorClass = TKDataFormNumberEditor.self

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 09 Feb 2016, 09:36 AM
Hi, Bhauvik,

Thank you for writing.

The reason for this error is that TKDataFormNumber editor is working with NSNumber objects since our Q1 release. If you want to use number editor your property should be NSNumber.

I hope this helps. If you have further questions I will be glad to assist.

Regards,
Adrian
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Bhauvik T
Top achievements
Rank 1
answered on 09 Feb 2016, 10:33 PM

Thanks for your answer,

In this case, you should check and fix the example code to be compatible with new change. 

0
Adrian
Telerik team
answered on 11 Feb 2016, 11:17 AM
Hello, Bhauvik,

The example will be updated in our next release. Thank you for the feedback.
If you need further assistance, do not hesitate to contact us.

Regards,
Adrian
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
DataForm
Asked by
Bhauvik T
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Bhauvik T
Top achievements
Rank 1
Share this question
or