Page 1 of 1

TeeChart on iOS

Posted: Mon Mar 12, 2012 12:14 pm
by 16561419
Hi,

I am trying to load and compile a project (FireMonkey HD iOS application created in Delphi XE2 update 4 and exported to Xcode)
that inclucdes a Chart component in Xcode/FPC.
But I am running into trouble already loading the project (Workspace Integrity, Couldn't load project...) in XCode.

How do I include the TeeChart sources in the Xcode project, do I need to add all FMI sources to my project (.DPR) file?
or is there another way to tell XCode/FPC where these sources are?

Is there any description how that works or even better an example Xcode project using TeeChart?

best regards,

X-Ray

Re: TeeChart on iOS

Posted: Wed Mar 14, 2012 11:06 am
by yeray
Hi X-Ray,

You can find an example here

Re: TeeChart on iOS

Posted: Wed Mar 14, 2012 2:34 pm
by 16561419
Hello Yeray,

I tried that example but there are obviously major drawing problems on iOS, especially
with the text on the axes. Just have a look at the attached screen shot from the simulator.
iOS Simulator Screen shot Mar 14, 2012 3.20.32 PM.png
iOS Simulator Screen shot Mar 14, 2012 3.20.32 PM.png (42.57 KiB) Viewed 14230 times
I am using Xcode 4.2 on Lion, together with the FPC(2.6.0)/Firemonkey install from XE2 update 4.
There are lots of similar problems in all charts.

Is there any fix for that?
Otherwise this version is pretty useless.

best regards,

X-Ray

Re: TeeChart on iOS

Posted: Wed Mar 14, 2012 2:50 pm
by narcis
Hi X-Ray,

This is probably related to a Delphi bug: http://qc.embarcadero.com/wc/qcmain.aspx?d=103976. The workaround is modifying "/Developer/Embarcadero/fmi/FMX_Types_FPC_Impl.inc" as described in the Quality Central description. Due to 103976 many TRectF methods are failing.

Re: TeeChart on iOS

Posted: Thu Mar 15, 2012 8:20 am
by 16561419
Hi Narcis,

Thank You!
That fixed all the problems, TeeChart is now working nicely on iOS!

best regards,

X-Ray