Posts

Post not yet marked as solved
2 Replies
857 Views
I'm trying to pick *otf* and *ttf* font files with UIDocumentPickerViewController with this line of code:UIDocumentPickerViewController *picker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:@[@"public.opentype-font", @"public.truetype-ttf-font"] inMode:UIDocumentPickerModeImport];This works perfectly with iCloud Drive, Dropbox, Box, etc. All non-font files are grayed out, and picking a font file works as expected.But it doesn't work if I select Google Drive, there all files are grayed out, I cannot select the font files.I tried to change the document types to just "public.content", but even with that, the font files on Google Drive are still grayed out.Anybody has any idea what could be the problem here?Thanks!Cheers,Zsombor
Posted
by zsombor.
Last updated
.
Post not yet marked as solved
0 Replies
1k Views
Hi!I'm trying to make the swift compiler optimize only a single file (in Debug configuration I would like to have optimization off, except this single file).I went to the Build Phases, and added "-O" to the Compiler Flags to that file, but it doesn't seem to have any effect. In the debug logs I can see the command to compile that file, and "-Onone" is among the arguments there, but there is no "-O".What am I doing wrong? Is it possible at all to set separate optimization level for a single file?Thanks,Zsombor
Posted
by zsombor.
Last updated
.