Add iOS Close Button Icon Without Custom Image

Viewed 21057

Is there a custom X or close button icon builtin to iOS7 that can be used for a close button?

8 Answers

This a tricky subject. Ideally you might want to get an icon generated from The Noun Project to get a more pixel perfect version.

What I have used myself is a "Add Contact" button type and then used this code to initialise it at load time to rotate it 45 degrees:

yourUILabel.transform = CGAffineTransform(rotationAngle: CGFloat.pi / 4)

It's not an ideal solution in my option though.

Hope this helps!

I ended up liking a lower cased "x" in Gill Sans at 40.0. It's not perfect but it does the trick. enter image description here

There is also a circled x in Xcode>Edit>Emojis if you search for "X" that could work. enter image description here

Related