Republican presidential candidate Donald Trump speaks at a town hall event on Sept. 17 in Rochester, N.H. (AP Photo/Robert F. Bukaty)

This post has been updated.

Republican front-runner Donald Trump says he is done with Fox News interviews "for the foreseeable future" because the news channel "has been treating me very unfairly."

Trump announced his personal boycott in a tweet on Wednesday about two hours before he was scheduled to give a speech before business leaders in Charleston, S.C. Trump has been feuding with Fox News -- known for its massive audience that skews conservative -- for weeks. For the last three days, his Twitter feed has filled with complaints about the news channel's personalities, guests and coverage.

A spokesperson for the Fox News Channel said in an e-mail that Trump's tweet came about 15 minutes after one of its shows, The O'Reilly Factor, canceled an interview with Trump scheduled for Thursday.

"When coverage doesn’t go his way," the spokesperson said, "he engages in personal attacks on our anchors and hosts, which has grown stale and tiresome. He doesn’t seem to grasp that candidates telling journalists what to ask is not how the media works in this country.”

Following the first Republican debate in early August, hosted by Fox News, Trump accused moderators -- especially Megyn Kelly -- of being unfair in their questioning. For days, Trump ranted about Kelly, making comments that some called sexist.

On Monday night, Trump tweeted a series of complaints about Fox News's "The O'Reilly Factor," featuring conservative pundit Bill O'Reilly, saying that the show has been "very negative to me" and would not feature a recent poll showing his dominance. Trump also said the show has been featuring "old Trump haters," instead of more "knowledgable" guests. At one point, Trump tweeted: "I am having a really hard time watching @FoxNews."

On Tuesday night, Trump yet again resumed his criticism of Kelly, writing in tweets that she is a "lightweight," is "highly overrated" and "should take another eleven day 'unscheduled' vacation." By lunchtime on Wednesday, Trump had decided to stop appearing on the channel.

On Wednesday afternoon, a spokesperson for the Fox News Channel released this statement:

“At 11:45am today, we canceled Donald Trump’s scheduled appearance on The O’Reilly Factor on Thursday, which resulted in Mr. Trump’s subsequent tweet about his ‘boycott’ of FOX News. The press predictably jumped to cover his tweet, creating yet another distraction from any real issues that Mr. Trump might be questioned about. When coverage doesn’t go his way, he engages in personal attacks on our anchors and hosts, which has grown stale and tiresome. He doesn’t seem to grasp that candidates telling journalists what to ask is not how the media works in this country.”