Extract Instance Variable is a refactoring in Objective-C that converts the selected expression to an instance variable of the class.
Place the caret at a local variable or select an expression to apply the refactoring to and press &shortcut:IntroduceField; (Refactor | Extract Instance Variable).

If you want to create a property for the variable or declare it in the interface, select the corresponding checkboxes in the popup that opens.