Sen. John McCainJohn Sidney McCainTo woo black voters in Georgia, Dems need to change their course of action Senate panel again looks to force Trump’s hand on cyber warfare strategy Senate panel advances 6B defense policy bill MORE (R-Ariz.) argued Tuesday that his relationship with President Obama is fine, contrary to media reports that the two had become distant in recent weeks.

"I'm the loyal opposition," McCain said during an interview with Fox News's Neil Cavuto Tuesday afternoon. "The country's in too bad of shape for us to not work together."

Still, McCain vowed to stand on principle -- even against members of his own party -- when necessary, especially on earmarks, which the former Republican presidential nominee said plagued both parties.

Signals were that the relationship between the two sparring partners this past fall had waned.

"It's a bipartisan disease, and we don't seem to get it," McCain said of the earmarks in the omnibus bill inserted by lawmakers on both sides of the aisle. "It is a habit, and it's become corruption."

McCain said it would be "disgraceful" for the president to sign such a package into law.