Republican presidential candidate Ted Cruz on Sunday continued his attack on rival Donald Trump's assertion that transgender people have a right to use the bathroom of their choice.

During an appearance last week on NBC's The Today Show, Trump said that he's opposed to a North Carolina law that prohibits transgender people from using the bathroom that does not conform to their gender at birth.

Cruz immediately pounced on Trump's comments, releasing an online ad in which he called Trump a member of the “PC police.”

“If Donald Trump dresses up as Hillary Clinton, he still can't go to the girls' bathroom,” Cruz said Sunday at a campaign event.

Cruz said the law is needed to protect women and girls from men pretending to be women to gain access to such facilities. Opponents note that laws in other states that allow transgender people to use the bathroom of their choice have not led to such incidents.

“When you deal with people who are repulsive perverts and criminals – there are some bad people in the world and we shouldn't be facilitating putting little girls alone in the bathroom with grown, adult men,” he said on Thursday. “That is just a bad, bad, bad idea.”