Once I start editing my code and adding for loops or if then statements my code indentation is whacked because the previous code maintains its former indentation instead of
In Xcode 4.6.3, choose Editor > Structure > Re-Indent.
Editor
Structure
Re-Indent
Shortcut: Control + I (that's 'i', for 'indent')
Control + I
This works on current selection. If no text selected, choose Edit > Select All (⌘+A) and then perform the re-indent.
Edit
Select All
(I'm more clearly restating the other answers)