missing sentinel in function call

| コメント(0) | トラックバック(0)

可変長引数の最後にターミネーターとしての「nil」を付けていないとこのエラーが発生する。

-(IBAction)menuAction{
    UIActionSheet *actionSheet;
    NSString *cancelStr=NSLocalizedString(@"Cancel",@"");
    NSString *startStr=NSLocalizedString(@"Start",@"");
    NSString *finishStr=NSLocalizedString(@"Finish",@"");
    NSString *archiveStr=NSLocalizedString(@"Archive",@"");
    NSString *registerStr=NSLocalizedString(@"RegisterMember",@"");
   
    actionSheet=[[UIActionSheet alloc] initWithTitle:nil
                                            delegate:self
                                   cancelButtonTitle:cancelStr
                              destructiveButtonTitle:nil
                                   otherButtonTitles:startStr,finishStr,archiveStr,registerStr,nil];
    [actionSheet showInView:self.view];
    [actionSheet release];
}
 

トラックバック(0)

トラックバックURL: http://www.ayabin.jp/mt5/mt-tb.cgi/88

コメントする

このブログ記事について

このページは、webmasterが2011年1月29日 19:48に書いたブログ記事です。

ひとつ前のブログ記事は「ManagedObjectの属性取得」です。

次のブログ記事は「プロビジョニング期限切れ」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。