に問題がありますUIActionSheet
。ボタンをクリックするとクラッシュします。をアクティベートしNSZombieEnabled
ました。次に、次のエラー メッセージが表示されます。
[FacebookConfigurationController actionSheet:clickedButtonAtIndex:]: メッセージが送信されました 割り当て解除されたインスタンス 0x84d4430
メソッドにブレークポイントを設定しました
-(void) actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger) index
しかし、停止する前にクラッシュします。あなたが私を助けることができれば、これが私のコードです
FacebookConfigurationController.h
@interface FacebookConfigurationController: UIViewController<UIActionSheetDelegate,...>
FacebookConfigurationController.m
-(void) LaunchFacebookMenu
{
if([Commentaire isEqual:@""])
{
NSLog(@"You must enter a comment");
}
else
{
UIActionSheet *action = [[UIActionSheet alloc] initWithTitle: [self getLanguageValue: @"facebook_popup_title"]
delegate: self
cancelButtonTitle: nil
destructiveButtonTitle:
[self getLanguageValue: @"facebook_popup_cancel"]
otherButtonTitles:
[self getLanguageValue: @"facebook_popup_userwall"],
[self getLanguageValue: @"facebook_popup_friendwall"],
[self getLanguageValue: @"facebook_popup_deconect"],nil];
action.actionSheetStyle =UIActionSheetStyleBlackTranslucent;
[action showInView:m_CurrentView.view];
[action release];
}
}
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)Index
{
switch (Index)
{
case 0:
{
[m_CurrentView dismissModalViewControllerAnimated:YES];
break;
}
case 1:
{
...
...
...