how to get low battery alert in iphone?
<p>I want to display low battery alert programatically in iPhone, when battery charge level is low.</p>

<p>Any one have an idea about this, then please help to me. I can find battery charge level by using this code</p>

<pre><code>    UIDevice *myDevice = [UIDevice currentDevice]; 
    [myDevice setBatteryMonitoringEnabled:YES];
    myDevice.batteryMonitoringEnabled=YES;
    float batteryLevel = [myDevice batteryLevel];
</code></pre>
