Andrew Viegas
Andrew Viegas

Reputation: 23

How to use math symbols in Interface Builder

I was wondering if there was a way to get mathematical symbols such as the square root symbol, or plus/minus sign, etc. in interface builder.

These symbols would be on a button or printed out on a label.

(This app is being created for iOS in Xcode 4)

Cheers :)

Upvotes: 2

Views: 2898

Answers (2)

Naishta
Naishta

Reputation: 12383

In latest XCode 7, click Edit-> Emoji & Symbols -> Small Command Icon at the top right -> select Math Symbols on the left pane

Upvotes: 0

Ken Thomases
Ken Thomases

Reputation: 90641

In the U.S. keyboard layout, the square root symbol (√) is Option-v. The plus/minus symbol (±) is Option-Shift-=. In general, you just type the symbol you're interested in. See the Keyboard Viewer to learn how to type a given symbol. To enable the Keyboard Viewer go to System Preferences > Keyboard pane > Keyboard tab > Show Keyboard & Character Viewer in menu bar.

Upvotes: 4

Related Questions