Я получил это сообщение с консоли отладчика:
- [UIButton release]: сообщение отправлено на освобожденный экземпляр 0x1836b0
Но я не создаю UIButton программноВсе мои кнопки созданы в Интерфейсном Разработчике.Каждая из них связана с функцией, например:
- (IBAction) theFunction: (UIButton *) sender;
Во многих этих функциях я надеваюне использовать переменную отправителя.Я даже не пытаюсь выпустить это.Поэтому я не понимаю, почему мое приложение пытается отпустить мои кнопки.Я делаю что-то в Интерфейсном Разработчике, чтобы выпустить или нет мою UIButton?Это из-за картинки, которую я положил в UIButton?Если я использую отправителя переменной (UIButton *), нужно ли его освобождать?Эта проблема застревает у меня из-за сбоя моего приложения.
Редактировать:
- (IBAction)showPopoverOverview:(UIButton *)sender {
TouchPlanePopover *content = [[TouchPlanePopover alloc] init];
[content setTheAlbum:@"Overview"];
// Setup the popover for use in the detail view.
detailViewPopover = [[UIPopoverController alloc] initWithContentViewController:content];
detailViewPopover.popoverContentSize = CGSizeMake(600., 400.);
detailViewPopover.delegate = self; // Set the sender to a UIButton.
// Present the popover from the button that was tapped in the detail view.
[detailViewPopover presentPopoverFromRect:sender.frame inView:self.view permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
// Set the last button tapped to the current button that was tapped.
lastTappedButton = sender;
[content release];
}
detailViewPopover создается в .h так: @property (nonatomic, retain) UIPopoverController * detailViewPopover;
Спасибо за помощь. Дайте мне знать, если вам нужно больше информации, я отредактирую сообщение