I have problem with array of GMSMarker. when i run my code its shows "fatal error: Array index out of range". I am going to remove markers from google map. i don't understand why this error comes. This is simple but pls help me to catch problem.
var MarkerList = [GMSMarker]()
if(MarkerList.count > 0){
for var j = 0 ; j < MarkerList.count ; j++ {
dispatch_async(dispatch_get_main_queue()) {
self.MarkerList[j].map = nil
}
}
}