Restore Your iPhone Or IPad To A Recent Backup
Make sure your device is set to automatically backup. If it is automatically backed up, it’ll be more easier to restore your iPhone from the most recent backup and see if the solution has been removed. If this fails, you may have backed up the contents of your iPhone including the malware of other problem, so restore from the second most recent backup. To turn on Backup: Settings >> iCloud >> turn on Backup.
If all else fails, you can wipe everything off your iPhone or iPad and start over. That means you erase everything from your smartphone or tablet, and start from scratch. To do that: Settings >> General >> Reset >> Erase All Content and Settings.
To protect your iPhone or iPad from malware in future we recommend never jailbreak your iPhone or iPad.Keep your iPhone and iPad up-to-date: Settings >> General >> Software update. Don’t open the links if you’re unsure where they come from.