I wrote the code to get the current time. But that has a problem. It is because you can do illegitimate with iPhone’s time setting. I want to get the real current time. And as easily as possible. please tell me.
The only way you can get the guaranteed ‘real’ time would be to call a web service - which obviously relies on them having internet access, but that’s the only way.
See for example
I will read it. If there is something I do not understand, I will ask you a question.
For real time you could call an NTP server. Several of these around.