Menu

compatability with IOS 9

Gordon
2015-09-18
2016-04-05
  • Gordon

    Gordon - 2015-09-18

    I have an app that has been working perfectly for more than a year (32 bit).. last week , our users updated to ios 9.. now my app loads and dies.. anything easy i can do?

     
  • Allen Chow

    Allen Chow - 2015-09-18

    me2 ! Plesae help

     
  • Allen Chow

    Allen Chow - 2015-09-19

    Fixed in Delphi 10 Seattle !

     
  • justapps

    justapps - 2015-09-19

    But does DPF compile for you in Delphi 10 Seattle? Also, does this fix 64 bit apps with XE8 all DPF components? After making the change it seems to not crash now but I haven't tested extensively yet. Thanks!

     

    Last edit: justapps 2015-09-19
  • Allen Chow

    Allen Chow - 2015-09-21

    All other seems ok, but DPFQLPreviewController will crash !

     
  • Allen Chow

    Allen Chow - 2015-09-22

    Tableview will crash in 64bit too

     
  • Gordon

    Gordon - 2015-09-22

    Yes, I noticed the crash/lock up too.. Im kinda worried about this, because it worked to well for so long, now all of a sudden, Im having to scramble to figure out how to make this work.

    Also, Lost my Done button on top of my IOS keyboard.. Seems to work, but blank there now..

     

    Last edit: Gordon 2015-09-22
  • justapps

    justapps - 2015-09-22

    My app was 32 bit and I knew I couldn't debug in 64 bit in XE8 so I hesitated on releasing a new version since Apple requires 64 bit now. When iOS 9 came out, users started emailing me about crashes. Since I was in a hurry, I compiled as a 64 bit app using XE8 with SDK 8.4 and requested a expedited review since my app was able to open on iOS 9. Now that I've started testing it better my app still crashes. It is hard to pin point these issues because it is so slow debugging and difficult with Delphi/iOS. It isn't obvious where the problem is coming from. I don't know if it is tableview with frames or the way I am using PresentViewController to open a form with a TDPFNavigationControllerPage on it. It was fine in 32 bit. At this point I don't know whether to wait until Apple makes another update or try to recode some things or just rewrite using Firemonkey controls. I love the way DPF uses native controls so I hate to give that up. The Delphi "platform" controls don't even have a tabbar native component. I would use my native TMS iCL components but the navigation controller always wants to put a Back button on pages. As far as the keyboard my Done button is there on the keyboard. I'd be willing to donate more to get these components fixed. Do the component developers here have a way to test 64 bit on iOS 9/8?

     
  • Allen Chow

    Allen Chow - 2015-09-23

    Since DPFQLPreviewController does not work, I added scalesPageToFit to DPF.iOS.UIWebView.pas so that I can zoom PDF inside webview :

    TDPFWeb = class( TDPFiOSBaseControl )
    private
    ..
    FscalesPageToFit: Boolean;
    procedure SetscalesPageToFit( const Value: Boolean);

    published
    ..
    property scalesPageToFit: Boolean read FscalesPageToFit write SetscalesPageToFit default True;

    constructor TDPFWeb.create( AOwner: TComponent );
    begin
    ..
    FscalesPageToFit := True;

    procedure TDPFWeb.Loaded;
    begin
    ..
    FUIWebView.SetscalesPageToFit(FscalesPageToFit);

    procedure TDPFWeb.SetscalesPageToFit( const Value: Boolean );
    begin
    FscalesPageToFit := Value;
    {$IFDEF IOS}
    if FUIWebView <> nil then
    begin
    FUIWebView.SetscalesPageToFit( FscalesPageToFit )
    end;
    {$ENDIF}
    end;

     
    • Gordon

      Gordon - 2015-10-28

      Allen, your solution works fine.. however I dont see any way to print using this method.. Can you help me find a way to print?

       
  • Gordon

    Gordon - 2015-10-07

    Most stuff seems ok in IOS9 now.. I still am very stuck on one issue. In the TDPFComboBox.. It used to have a "Done" bar across the top.. after you picked your selection, you would click "Done" and the spinner/Picker would go a way.. Now, there is not bar with Done on it.. and no matter what you do, it wont go away on its own.. Please Please Please,,, any ideas?

     
    • Gordon

      Gordon - 2015-10-09

      Ok, when I removed the DPFQLPreviewController object completly.. My menu came back.. so weird.. It is affecting other things.. Now I just have to try the work around as mentioned to print PDF's.. Ive got it to work well with Allens idea, using the Web component.. but it now has now way (That I can see) to print or email the document.. Im 95% done.. But stuck..

       

      Last edit: Gordon 2015-10-09
  • Gordon

    Gordon - 2015-10-25

    Any hopes on getting DPFQLPreviewController working? I used Allens solution, it works fine.. but I dont see any way of printing anymore.. I have spent an entire day trying to isolate the problem with the PDFView demo app.. I have commented out almost 90% of the code, and it still dies at start up.. If I remove the QLPreviewController from the main View, loads fine.. I am out of answers..and getting desperate.. Any ideas?

     

    Last edit: Gordon 2015-10-29
    • Marco Warm

      Marco Warm - 2015-10-27
      Post awaiting moderation.
  • Sebastian Zierer

    I've checked in a couple of fixes for suspicious things. Please test and let me know if that fixes it.

     
  • Gordon

    Gordon - 2015-10-31

    I think you got it! Thank you so so much! Ive been so desperate..

    Can you tell me basically what you did? From what I can see, it was something in the Loaded method.. Invalid type cast?

     

    Last edit: Gordon 2015-10-31
  • JoeJim

    JoeJim - 2015-11-03

    The last version from svn didn't work on os 9.1 both 32 and 64 Bit. The app crashes on startup.
    I added the fix for http requests, but that didn't help!

     
    • Gordon

      Gordon - 2015-11-05

      If you are using XE8 or before.. you will need to make a copy of FMX.Context.GLES.iOS, and copy it into your app dir.. then tweek the file as per the instructions.. If you dont do this with xe8, it will crash at startup.. Seattle is fine.
      Could that be your problem?

       
      • JoeJim

        JoeJim - 2015-11-10

        I tried that - no success

         
  • Babak Yaghoobi

    Babak Yaghoobi - 2015-11-04

    Hi JoeJim

    I test last vesrion with XE10, OSX Capitanm, xCode 7.1 iPhone 5s 9.1 and iPhone 6s 9.1 !
    But I can't see any problem !!!

    I can't reproduce your bug !
    Can you attach a simple project here ?

    Regards

     
  • JoeJim

    JoeJim - 2015-11-10

    Here some output from the debugger:

    -[UITabBarController viewDidAppearOriginal:]: unrecognized selector sent to instance 0x15e8b8850 Prozess Checkin (1402)
    2015-11-10 08:51:44.524 Checkin[1402:389584] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBarController viewDidAppearOriginal:]: unrecognized selector sent to instance 0x15e8b8850' Prozess Checkin (1402)

     
  • JoeJim

    JoeJim - 2015-11-10

    Here's a small project.
    I also use XE10, OSX 10.10.5, xCode 7.1, iPhone 5s 9.1, iPad Air 9.1

     

    Last edit: JoeJim 2015-11-10
  • Babak Yaghoobi

    Babak Yaghoobi - 2016-04-05

    Hi JoeJim
    Thank you for sample, I will check it on iPhone 6s with iOS 9.3

     

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.