tags:

views:

229

answers:

2

as topic, I am strange that why does the SDK not provide API to show the UIFont picker ? like the date Picker......

or maybe some open source code is available now ?

Thanks for your help !

Regards

+2  A: 

I am not aware of existing solutions but you can easily retrieve all font names available in system:

for (NSString* familyName in [UIFont familyNames])
     for (NSString* fontName in [UIFont fontNamesForFamilyName:familyName])
         // Store font names or do whatever you want
         // You can create font object using 
         // [UIFont fontWithName:fontName size:fontSize];

And then allow user to pick one of then in your own font picker with the design you want.

Vladimir
+2  A: 

I whipped something up in a few minutes which might be what you want: http://github.com/alexrepty/ARFontChooser

Alexander Repty
+1 nice example
Vladimir