As others have mentioned you can use a website. I am really strict about security, even for a guest network, so I don't like the idea of using a website where they'll get my password.
If you are comfortable with the command line you can use 'qrencode'. It is available on linux systems or on Mac through a package manager. I use MacPorts but it looks like Homebrew has it as well. Once the utility is installed generating a QR code is easy. It is a one line command. Just follow the directions in the link below (I output a PNG32 so I could paste it into Pages). I generated a QR code for my quest network and my iPhone was able to connect. It was really easy.
http://nlug.ml1.co.uk/2013/10/generate-qr-codes-for-wifi-networks/4434