How to deal with MKReverseGeocoder / PBHTTPStatusCode=503 errors in iOS 4.3?

后端 未结 6 1517
抹茶落季
抹茶落季 2020-12-16 06:08

Since iOS 4.3 (GM Seed 10M2518) I\'m getting crashes when using MKReverseGeocoder. reverseGeocoder:didFailWithError: gets called with an error like

6条回答
  •  囚心锁ツ
    2020-12-16 06:39

    Make sure you don't release the reverse geocoder prematurely on failure:

    Changing [_reverseGeocoder release] to [_reverseGeocode autorelease] in -(void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFailWithError:(NSError *)error fixed the problem for me.

提交回复
热议问题