From Reuters:

“Although Turkey doesn’t like the [Ahmadinejad] regime it has always tried to keep Iranians both at bay and collaborate with them. It is an extremely delicate balancing act and it will continue to be so,” says Cengiz Aktar, a political scientist at Istanbul’s Bahcesehir University.