0

I have got this error when I press send button from the message composer sheet, my piece of code is this:

-(void)ComposerSheet 
{
    picker = [[MFMessageComposeViewController alloc] init];
    picker.messageComposeDelegate = self;
    [self presentModalViewController:picker animated:YES];
    [picker release];

}

I have initialised the picker in the .h file. How do I get out of here? I tried using NSZombies but as the problem is occurring at the messaging part, I can't use them there.

bneely
  • 9,083
  • 4
  • 38
  • 46
  • Just a note on syntax conventions: method names should start with a lower case letter :-) –  Jun 07 '12 at 15:12

1 Answers1

0

The problem was with the release of objects, I have commented out all the release objects in my proj. Then it was running well. Then checked where I was doing it wrongly. It worked.

  • Commenting out all releases in your code is a sure-fire way to many memory leaks. Consider converting your project to use ARC, then the compiler can help you out with much of the routine memory management. –  Jun 07 '12 at 15:10