...
ObjectiveCの にいくつかの問題があります。
私は基本的にメソッドをラップしていて、nil
終了したリストを受け入れて、同じリストをラップしているメソッドに直接渡したいと思っています。
これが私が持っているものですが、EXC_BAD_ACCESS
クラッシュの原因になります。ローカル変数を調べると、渡されたときにotherButtonTitles
単に a である場合に表示されますNSString
otherButtonTitles:@"Foo", nil]
+ (void)showWithTitle:(NSString *)title
message:(NSString *)message
delegate:(id)delegate
cancelButtonTitle:(NSString *)cancelButtonTitle
otherButtonTitles:(NSString *)otherButtonTitles, ...
{
UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:title
message:message
delegate:delegate
cancelButtonTitle:cancelButtonTitle
otherButtonTitles:otherButtonTitles] autorelease];
[alert show];
}
nil
まったく同じ終了リストを維持しながら、着信引数から発信引数に単純に吸い上げるにはどうすればよいですか?