When the war ended, he returned to Hollywood and was loaned by his studio to Hitchcock for “Rope” in 1948.
In the film, based on the 1924 Leopold and Loeb case, Mr. Granger and co-star John Dall play students who murder a classmate for the thrill of it.
Mr. Granger then starred in Nicholas Ray’s 1949 film noir crime drama “They Live by Night,” before Hitchcock tapped him again for “Strangers on a Train” in 1951.
As tennis player Guy Haines, Mr. Granger and psychotic commuter Bruno, portrayed by Robert Walker, scheme to commit dual murders for one another’s benefit.
Both of his performances under Hitchcock brought Mr. Granger critical acclaim in Hollywood but left him unfulfilled.
Mr. Granger’s turbulent relationship with Goldwyn ended in the 1950s, after the actor bought out the time remaining on his contract. He moved to New York and took acting lessons in an effort to perfect his craft.
In the 1960s, he landed a number of roles in Broadway productions, including as Fitzwilliam Darcy in “First Impressions,” a musical adaptation of Jane Austen’s “Pride and Prejudice,” and as John Proctor, the lead character in a revival of Arthur Miller’s “The Crucible.”
Mr. Granger also spent several months in Europe during the filming of Luchino Visconti‚Äôs ‚ÄúSenso‚Äù (1954), which featured dialogue by Tennessee Williams…
In his 2007 memoir “Include Me Out,” Mr. Granger wrote that he had his first sexual encounters during World War II while he was stationed in Hawaii.
After a rum-fueled evening on the exotic island, he wrote, he lost his virginity to a prostitute named Liana. Hours later, he slept with a handsome Navy officer named Archie.
When he returned to Hollywood after the war, Mr. Granger was linked romantically to actresses Ava Gardner, Rita Hayworth and Shelley Winters, whom he called “the love of my life and the bane of my existence.”
He also had affairs with conductor and “West Side Story” composer Leonard Bernstein and “West Side Story” scriptwriter Arthur Laurents.
Mr. Granger, who contributed to the 1995 historical documentary “The Celluloid Closet,” about gay life in Hollywood, was a decades-long companion of Robert Calhoun, an Emmy Award-winning television producer. Calhoun died in 2008.
“One of the hardest things in the world is to really find yourself,” Mr. Granger told the Advocate, a gay lifestyle magazine, in 2007. “And once you find yourself, it’s great. You should hang on to it. But sometimes it takes a lot of work, to really say, ‘This is who I am.’ ”