Updated

A Colorado man credits an application on his iPhone for saving his life after a 7.0 earthquake hit Haiti by showing him how to treat his wounds.

Colorado Springs resident Dan Woolley said on The Today Show Tuesday that he used a medical app saved on his phone to treat a leg injury after the Hotel Montana in Port-au-Prince collapsed around him.

Woolley returned to Colorado Springs Wednesday after spending time recovering at Jackson Memorial Hospital in Miami, but credits his iPhone for saving his life.

Woolley used the light from his iPhone to locate his injuries. After diagnosing a broken foot, he used the instructions from the application to treat the excessive bleeding from cuts on his legs and the back of his head.

Woolley used his shirt to tie off a 3-inch gash on his leg and a sock to bandage the back of his head. He used his iPhone to look up ways to stop from going into shock.

"I kind of had some time to do some self-diagnosis down there," Woolley said. "God was with me."

Wolley is a film producer and was in Haiti filming a documentary on efforts to help the nation's poverty-stricken children when the earthquake hit.

Click here to read more from NBCMiami.com.