A grandmother allegedly shot her estranged son-in-law over a bitter custody battle in an attack that was caught on the victim’s iPhone.

Salvatore Miglino, 39, anticipated a confrontation when he went to pick his three-year-old son up from his mother-in-law’s home and so decided to record the handover.

Grandmother Cheryl Hepner, 66, allegedly pulled a gun on him outside her South Florida home, shooting him twice in the shoulder and rib cage with a .22 calibre Beretta handgun.

The iPhone, which appears to have been left on the front seat of Miglino’s car, captured the sound of gun shots but did not capture the actual shooting.

Mr Miglino can be heard screaming: “I can’t believe you did that! What, are you crazy?” as he jumps from the car, iPhone in hand.

He then reportedly wrestled the gun from Hepner’s hand before driving away and phoning the police.

Hepner, the mother of Mr Miglino’s estranged wife, was arrested following the shooting on December 7.

Broward County Sheriff's Office has now released the footage of the incident as well as two conflicting 911 calls made by both Mr Miglino and Hepner.

Hepner can be heard telling a police operator: “Somebody just shot at me” before describing the ‘suspect’ as a “son of a b****” who was “in the middle of a horrible divorce” with her daughter.

But, in a separate 911 call, Mr Miglino, from Boca Raton, tells the operator: “I’m shot! I took the gun away from her.”

He also added that he had filmed his visit because "I knew something stupid was going to happen, but we're going through a divorce and trying to settle."

Dani Moschella, a spokeswoman for the Broward County Sheriff's Office, told ABC News: “Mrs. Hepner told authorities that [Miglino] pulled a gun on her so it was in fact the exact opposite of what had happened.

"As evidence goes, that was a gem. That absolutely corroborated everything that Mr. Miglino had told detectives."

An affidavit filed after the incident states that Hepner “did knowingly and intentionally plan to kill and murder Mr. Miglino from a premeditated design.”