How to request location in iOS 7
<p>I want to request location in iOS 7+. I can achieve this in iOS 8+ by using this:</p>

<pre><code>locationManager.delegate = self 
locationManager.desiredAccuracy = kCLLocationAccuracyBest 
locationManager.requestWhenInUseAuthorization() 
locationManager.requestLocation()
</code></pre>

<p>but in iOS 7 I can't use these two line:</p>

<pre><code>locationManager.requestWhenInUseAuthorization()
locationManager.requestLocation()
</code></pre>

<p><a href="https://i.stack.imgur.com/wsFde.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wsFde.png" alt="enter image description here"></a></p>

<p>Any helps would be appreciated. Thanks.</p>