Bug with TKDataFormNumberEditor

4 posts, 0 answers
  1. Bhauvik T
    Bhauvik T avatar
    4 posts
    Member since:
    Dec 2009

    Posted 08 Feb Link to this post

    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

     

     

     

     

  2. Adrian
    Admin
    Adrian avatar
    167 posts

    Posted 09 Feb Link to this post

    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
  3. DevCraft banner
  4. Bhauvik T
    Bhauvik T avatar
    4 posts
    Member since:
    Dec 2009

    Posted 09 Feb Link to this post

    Thanks for your answer,

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

  5. Adrian
    Admin
    Adrian avatar
    167 posts

    Posted 11 Feb Link to this post

    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
Back to Top
DevCraft banner