Memory leak with ABPeoplePickerNavigationController?

后端 未结 2 1855
有刺的猬
有刺的猬 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

提交回复
热议问题