Okay, this is driving me nuts. This is my code:
I downloaded the premium styles and placed the iOS ones in C:\Users\Public\Documents\RAD Studio\11.0\Styles\iOS
begin
TStyleManager.SetStyleFromFile('iOSJet.style');
TStyleManager.SetStyleFromFileHiRes('iOSJet2x.style');
Application.Initialize;
Application.CreateForm(TFormMain, FormMain);
Application.Run;
end
If have added these two files to "deployment"
- iOSJet.style
- iOSJet2x.style
But my app still opens using the default ios6 style. When I step through code this happens:
Result := False;
S := LoadFromFile(FileName);
if Assigned(S) then
begin
// Does NOT enter here?
Result := True;
SetStyle(S);
end;
What is confusing is hat I use the code officially shown by Embarcadero:
- http://docwiki.embarcadero.com/Libraries/XE4/en/FMX.Styles.TStyleManager.SetStyleFromFile
- http://blog.marcocantu.com/blog/couple_tips_xe4_fmx_styles.html
Has anyone gotten styles working? And if so, how exactly?