This post has been updated.

Donald Trump said Wednesday that he favors using "stop-and-frisk" tactics to curb violence in black communities, embracing a controversial policy in which police officers are empowered to stop, question and search individuals they suspect have committed crimes or are preparing to do so.

In an interview with Sean Hannity of Fox News that was recorded Wednesday, Trump made the remark in response to a question from a member of the audience.

"Well, one of the things I’d do, Ricardo, is I would do stop-and-frisk," Trump said. "I think you have to. We did it in New York, it worked incredibly well and you have to be proactive and, you know, you really help people sort of change their mind."

In a different interview with Fox News on Thursday morning, Trump said he was "really referring to Chicago with stop-and-frisk." But the question he was asked by the audience member in the Hannity interview was not specific to Chicago, according to the transcript released by Fox.

"There's been a lot of violence in the black community. I wanted to know, what would you do to help stop that violence, black-on-black crime," the questioner asked, according to the transcript.

Earlier in the interview, Trump and Hannity talked about Chicago, which has been plagued by gun violence. Trump mentioned New York City's past use of the tactic and added, "Chicago, maybe more than ever, you're going to need something, because what's going on there is absolutely out of control."

The Hannity interview was originally slated to air Wednesday night but did not and will now air Thursday. The network released a transcript ahead of the broadcast. Hannity openly supports Trump.

Critics have argued that the practice unfairly targets minorities. A federal judge ruled in 2013 that New York City's law, as it was operating, was unconstitutional and a "form of racial profiling."

Shortly after taking office in 2014, New York Mayor Bill de Blasio (D), an outspoken critic of the practice, announced he was ending a legal battle over stop-and-frisk tactics, leading to the appointment of a court-appointed monitor to oversee the NYPD's reform of the policy.

Trump said that the use of the practice was "so incredible" in New York. But a 2014 New York Civil Liberties Union report found that as the number of stops increased dramatically from 2002 to 2011 during Michael Bloomberg's tenure as mayor, the number of guns recovered, shooting victims and murders only "changed modestly."

In his Thursday interview, Trump described how he sees police using a stop-and-frisk policy.

"They are proactive, and if they see a person possibly with a gun or they think may have a gun, they will see the person that they'll look and they'll take the gun away. They'll stop, they'll frisk and they'll take the gun away," Trump said.

Trump's championing of the practice comes at a time when he is trying to improve his poor standing among African American voters, an effort that has been awkward at times, such as when he visited a predominantly black church in Flint, Mich., and was instructed by the pastor to stop giving politically charged remarks.

The stop-and-frisk approach is not broadly popular among African Americans, so Trump's comments could set back his attempt to win over black voters. Moreover, they come amid a string of high-profile police shootings of African Americans that have angered many black voters and fueled concerns about the police being overly aggressive.

The Republican presidential nominee, who has used anti-Muslim and anti-immigrant rhetoric throughout his campaign, also said in the Hannity interview that charges that he is racist are signs of desperation from Democrats.

"It’s a very interesting phenomenon, but the word ‘racist’ comes out and that means that you’re winning and that’s their last chance, and I don’t think it’s working," Trump said.