I updated my Phone to IOS 11 and the system() function is not supported anymore. I want to shutdown after pressing a button, how can I do that? Respring works fine with posix_spawn. My old code is:
(void)shutdownButtonPressed{
system("shutdown");
}
From the
shutdown
source, it would seem the proper way of doing this is: