Hello I'm pretty new to iphone development.. does anyone know how i can find out whether the device is charging or not? many thanks in advance!