Opening project in landscape iOS does not display correctly in Delphi XE8

When I open my projects in landscape in iOS, the shape rotates 90 degrees to the right and also doesn't fit on the screen.

When I open it in a portrait, I have no problem. Also when I rotate it to landscape it displays correctly.

Does anyone have a solution for this?

UPDATE: I downloaded XCode 5.1.1 so that I can compile to iOS 7.1 This solves the rotation issue, but now it doesn't fill the whole screen.

+3


source to share


2 answers


I am using ActivityGialog component. I used this component in the formCreate method which gave the problem. Removing it from formCreate and moving it to formActivate solved the problem.



0


source


This appears to be a bug in XE8 that appears to occur mainly in larger programs and possibly in combination with the TMS iCL components. At least no one has yet developed a small program that can reproduce the problem. I also had the problem and "solved" it with a workaround.

See this bug report and this forum question (if you can catch it while the servers are up). Both describe various fixes and workarounds.



Edit: I was able to reproduce the error in a small program, and it seems that at least the iCL FMX wrapper can cause this error. Also this only happens when the target is iOS 8. I contacted TMS and they have confirmed that they can reproduce it and fix it. Until then, you can work it out by creating the wrapper the first time it is shown:

TForm = class
  ...
  fWrapper: TTMSFMXNativeFMXWrapper;
  ...
end;

procedure TForm.FormShow(Sender: TObject);
begin
  if not Assigned(fWrapper) then
  begin
    fWrapper := TTMSFMXNativeFMXWrapper.Create(Self);
    fWrapper.Form := MyWrappedFMXForm;
    fWrapper.Parent := MyParentView;
  end;
end;

      

+3


source







All Articles