In two appearances on Sunday, Republican presidential candidate Ted Cruz responded to Caitlyn Jenner's jab over transgender bathroom use.

Jenner last week took Donald Trump up on his offer to use the bathroom of her choice at Trump Tower.

In a video posted online, Jenner took a stab at Cruz after using the ladies room, saying, “By the way, Ted, nobody got molested.”

(Related: Caitlyn Jenner uses Trump Tower ladies room; Takes a stab at Ted Cruz.)

Cruz has defended laws that prohibit transgender people from using the bathroom of their choice, saying they are needed to protect women and children from male predators pretending to be women.

On NBC's Meet the Press and CNN's State of the Union, Cruz stood by his remarks.

“This is not a matter of right or left, or Democrat or Republican,” Cruz said on State of the Union. “This is common sense. It doesn't make sense for grown adult men, strangers, to be alone in the restroom with a little girl.”

“This is the height of political correctness. And frankly, the concern is not of the Caitlyn Jenners of the world, but if the law is such that any man, if he feels like it, can go in a woman's restroom and you can't ask him to leave, that opens the door to predators.”

“But I don't think that's what the law is,” host Jake Tapper said.

“Of course it is.”

“But you or I don't identify as female. You or I aren't transgender. This law wouldn't be about you and me going into a women's room.”

“But the law doesn't specify transgender. It's whatever you feel like at the given moment,” Cruz replied.