Here is how to charge your iPhone from your MacBook Air battery. (It will work for a MacBook Pro as well.)
- Plug the phone into the MacBook Air USB port.
- Open the lid and power up the MacBook Air.
- Close the lid, putting the MacBook Air to sleep and the iPhone will continue to charge!