swift - Check if the device datesettings is automatic in iOS -


is there way check if device settings "date , time" set automatic or not in swift? , if there is, there possible make user switch desired settings (automatic)

the way ios structured, app lives in sandbox , can communicate system if there public api apple has shared developer community. public apis can used freely accelerometer others require user permission location information. unfortunately date , time settings apis not public , can't play date , time settings @ all.

there many posts getting time in user tamper proof way. bottom line there no real 100% tamper proof solution following code step protecting users.

#import <corelocation/corelocation.h>  cllocation* gps = [[cllocation alloc]                    initwithlatitude:(cllocationdegrees) 0.0                    longitude:(cllocationdegrees) 0.0]; nsdate* = gps.timestamp; 

many other resources take @ these two:


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -