Just read an article on Gizmodo that because iOS 5 now allows you to use the volume up button as the camera shutter, will also work with the wired headphones and a bluetooth headset. I tested both and it works. Just thought I'd let you know.
How do you get it to work with a Bluetooth headset?