Mahir
Mahir

Reputation: 1684

Is it possible to make an NSString with some characters as subscripts and superscripts?

My app will have chemistry formulas (CO3^2-, H2O, etc), so some of the text in my app will need to have subscripts and superscripts. Is it possible to do this with NSStrings, or is there an alternative/easier way to go about this?

Upvotes: 0

Views: 205

Answers (1)

NSResponder
NSResponder

Reputation: 16861

See NSAttributedString.

Upvotes: 1

Related Questions