Memory leak with ABPeoplePickerNavigationController?

后端 未结 2 1827
有刺的猬
有刺的猬 2021-01-21 05:32

I\'m using this code to display the contacts in an app.

- (IBAction) selectContact:(id)sender {

    ABPeoplePickerNavigationController *picker = [[ABPeoplePicke         


        
相关标签:
2条回答
  • 2021-01-21 06:13

    I know this goes against logic, and against everything you know, but please trust me on this. Comment out the line that releases the picker;

    //-- [picker release]; this line must be commented
    

    It's most likely a bug in the Apple SDK

    0 讨论(0)
  • 2021-01-21 06:39

    Try updating your SDK to the most recent iOS version, and see if the leak still occurs. If it does, please file a bug through the developer center.

    0 讨论(0)
提交回复
热议问题