Stop your iPhone or iPad from keeping you awake at night. CNET’s Dan Graziano shows you how.