FPPopover icon indicating copy to clipboard operation
FPPopover copied to clipboard

Dealloc just after alloc

Open brcebn opened this issue 11 years ago • 0 comments

Hello,

I have a problem when I'm trying to use FPPopover. I've posted an issue on StackOverFlow some weeks ago. I thought the problem was fixed by uninstalling and reinstalling the pod but finally not and I have no explanation of this bug.

- (IBAction)displayAlternateNicknames:(id)sender{
  PXAlternativeNicknamesViewController * suggestionsVC=    [[UIStoryboard storyboardWithName:[ViewsParamsSingleton sharedLoginSignUpStoryBoard] bundle:nil] instantiateViewControllerWithIdentifier:NicknameSuggestionsStoryBoardID];
  suggestionsVC.title=@"Suggestions";
  suggestionsVC.nicknameSuggestions=self.nicknameSuggestions;
  suggestionsVC.callerVC=self;

  //our popover
  suggestionsPopover = [[FPPopoverController alloc] initWithViewController:suggestionsVC];

  suggestionsPopover.contentSize = CGSizeMake(200,200);

  //the popover will be presented from the okButton view
  [suggestionsPopover presentPopoverFromView:sender];
}

When there is the alloc, on the following line there is a deallocdirectly do my content is never shown.

I can read this on the terminal:

FPPopoverController dealloc
FPTouchView dealloc
FPPopoverView dealloc

If any one has an idea to fix this bug I would really appreciate to know it?

Thank you in advance.

brcebn avatar Apr 25 '14 06:04 brcebn