Grant said Ninow was also "obliged" to hand over his cellphone. Ninow's lawyer Riaan du Plessis argued in court yesterday that his client did not want to help the state with its case. Du Plessis argued that forcing Ninow to hand over his cellphone would result in an unfair trial.
Law experts have, however, criticised the state for not confiscating the cellphone during his arrest, saying evidence they were looking for could by now have been deleted from the device currently with his grandmother.
State advocate Sanet Jacobson said it was important Ninow hands over his cellphone for a forensic data scrutiny.
Grant said the state was entitled to seize the cellphone and did not require permission.
"The cellphone might contain pictures of the girl or the accused might have communicated with someone about what he was going to do."
Criminal law expert Dr Lewellyn Curlewis said by demanding access to the cellphone, the state has reasonable suspicion there was information on it. "Maybe he took photos prior or during the incident. The state wants to probe all avenues and has capacity to force any person to hand over any information that can help its case."
The child was in the play area when she was allegedly followed into the bathroom.
Ninow hid his face with a hooded sweater in the dock as his legal aid lawyer detailed injuries he allegedly suffered at the hands of onlookers and police following the incident.
The packed public gallery roared in approval after Ninow was remanded in custody. The case, which has sparked public outcry, brought the Pretoria CBD to a standstill with protests outside court. Also in court were Tshwane mayor Solly Msimanga and ANC Women's League secretary-general Meokgo Matuba.
The case was postponed to November 1.