Jobs was a fruitarian in the 80s or earlier, back when he named his company "Apple". AFAIK he was neither fasting or being a fruitarian to fight his cancer, but overall he was a finicky eater all his life, a (sometimes lax) vegetarian with bouts that resembled a true eating disorder.
I don't have a source, but I recall reading that friends of his desperately tried to convince him to undergo "real" treatment for his cancer instead of relying on alternative medicine, so apparently he did try other options early on.
This same diet landed Ashton Kutcher in the hospital when he tried to go method for Jobs.