In Objective-C, you can inline a constant, variable, method, parameter, typedef, or macro at the caret by pressing &shortcut:Inline; (Refactor | Inline). For example, you can replace redundant variable usage with its last assigned value.

To invoke the refactoring, move the caret at the required local variable and press &shortcut:Inline; (Refactor | Inline).

Inline variable

This will result in the following:

Inline variable