If it's a foul by the player who shot, but has returned to the floor, then it's the same as any offensive foul -- the ball isn't dead until the try ends, under all codes.
So....
if the shooter swears at you while he's in the air, the ball is dead, but if it's after he lands, the ball is still live until the try ends?