Xcode
You can fold code, by highlighting over the start of a code block, and selecting the black arrow.
There is also a menu providing more options (with keyboard shortcuts)
TextWrangler/BBEdit
Same principle, but you don't have the integrated development environment that Xcode has