There's nothing wrong with this code. It works without problem on my devices. You might want to try rebooting your device or trying on another device.
The few isolated references that I found to this problem were related to beta versions of iOS 6 or other people suffering from the occasional crash, so perhaps we're just slowing working through the kinks in this messaging UI.