Redefine standard textstyles in iOS7 - ios

Is it possible to redefine standard text styles: UIFontTextStyleBody, UIFontTextStyleHeadline, etc.?

Seems that it's not.
As I understand it's similar to the custom CSS sheet in Safari — user select fonts he like, and then he see those fonts in apps, that support dynamic fonts.

Maybe UIAppereance can be to help? It allows you to set fonts and styles for any kind of view/element in any controller.

Related

Dynamically loading custom fonts in iOS

Can you dynamically load custom fonts in iOS similar to how you do in Javascript?
I have seen few questions about this but they are quite outdated or don't really answer the question.
I don't want to add a font to my application/register it in the info.plist. I want to be able to dynamically load a custom new font that is not in my library then use it within my app.
The only fonts you can download dynamically and use are Apple's own fonts. You can include a font and use it, and you can even make it available to other apps ("font provider"), but you cannot download an arbitrary font. That would be a security hole and Apple doesn't permit it.

Snipcart, customising the cart

Is it possible to customise say the colour of the button on the snipcart checkout? Or the font family?
I looked at some tutorials but they seem to be for an old version
The same approaches to customize the cart can be used for the V3 and more.
In your case, you can change colors and fonts by overriding the CSS.
To do this, add a separate CSS file after the one provided by Snipcart with your own CSS rules targeting the same selectors.

Applying themes programatically in iOS 7

Does anyone know what is best way to implement setting concept for changing themes throughout the app including the font colour, font family name and font Size in iOS 7
Thanks in advance
You could make a CSS type Style Sheet class in your code where you define all your font type, colours, etc. using macros and use those macros for setting those fields at the required places. When the user goes to the settings page and chooses a different theme, you just need to handle those macros. Hope it helps.

famo.us: make my fonts look like iOS fonts

Is it possible to make my fonts in famo.us look like the ones normally in iOS? It seems like my fonts never look quite as nice.
Can anyone tell me if they have faced this same problem?
I've seen buttons shrink and font families change due to an "implicit" small control webkit style. You may want to try adding style properties:
'-webkit-appearance': 'none',
'font-size': 'small',
The font-size doesn't need to be small, but it needs to be something other than xsmall.

how can I add this formatted text for a help page in my ios app

I have this help page I want to add to my application, but I'm not sure of how to format it. At the moment it's just an image in a scrollview, but surely there's a better way?
Many apps use a WebView to display formatted text. You can then use CSS to style your content as needed.
You could use NSAttribuatedString + RTLabel to display it (or of cause the default cheat of a UIWebView).
To display RichText (NSAttribuatedString use one of these).
http://www.cocoacontrols.com/platforms/ios/controls/rtlabel
https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML
http://www.cocoanetics.com/2011/01/uiwebview-must-die/
https://github.com/AliSoftware/OHAttributedLabel
https://github.com/mattt/TTTAttributedLabel
Use webview to and with webservices so u can change it later so on

Resources