To make this a bit simpler (it's a common requirement) I've built a simple UIButton subclass called BVUnderlineButton that you can drop straight into your projects.
It's on Github at https://github.com/benvium/BVUnderlineButton (MIT licence).
You can use it in a XIB / Storyboard or direct via code.