Menu

Pulling my hair out with dynamic frame table..

Gordon
2014-01-20
2014-01-21
  • Gordon

    Gordon - 2014-01-20

    My app was working perfectly.. Now all of a sudden, i have this strange error.. I dont think i changed any code.. so im really baffled..

    It gives a type cast error.. on this code..

    UIView( ( CustomFrame.Components[i] as TDPFiOSBaseControl ).UIControl ).setTag( TAG_BASE + i );

    On line 2254 in DPF.iOS.UITableView

    Did anything possibly change in this code? maybe its me,but I dont think I changed anything..

    Any ideas?

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-01-20

    Hi Gordon

    1) May be one of your frame not created,
    2) May be you are using a non DPF component in your frame! (one of FMX controls)

    if you send me a sample project, I can see and find your problem.

    Regards

     
  • Gordon

    Gordon - 2014-01-20

    Ok, I found the problem..

    On the frame, I added a keyboard component.. because I wanted to control the 'Done" etc..

    When you remove the keyboard component.. problem gone.. put it back, dies..

    Not sure if its a bug? Im thinking so.. Ive attached code..

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-01-20

    Hi Gordon,

    Don't add DPFKeyboard or any other invisible components on the frames that used in the cells,
    Add DPFKeyboard on the main form, only one instance of keyboard is enough for all forms in application.

    Regards

     
  • Gordon

    Gordon - 2014-01-20

    Got it, thanks.. all is well now..

     
  • Gordon

    Gordon - 2014-01-20

    I have one main form, with a navcontroller on it..
    everything else is just frame files..

    I removed all copies of my keyboard.. and just have ONE component on my main form..but the behaviors dont seem to trickle down the the other views..
    It seems like I need one per each view.. This is how I got into this mess in the first .. It seems ok, as long as I keep it off of my dynamic stuff.. Dynamic frame etc..
    Am I right?

     

    Last edit: Gordon 2014-01-21
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-01-20

    Hi Gordon

    No, you don't need one per each view, only on keyboard for all application is enough,
    I do not recommend dynamic frames,
    I don't know exactly what is the problem, may be you can send me a sample project.

    Regards

     
  • Gordon

    Gordon - 2014-01-21

    I think I figured it out.. Im still a little confused on properties and what they all do..
    There was a picker property that I wasnt using.. that combined with the fact that the simulator behaves much different than a real phone.. So. I think its ok..

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2014-01-21

    Hi Gordon,

    Can you tell me what exactly is the problem, please ?

    Regards

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.