如何制作像 UIActionSheet initWithTitle 这样的方法
我怎样才能使方法的参数是像这样的无限数组:
UIActionSheet *actionSheet = [[[UIActionSheet alloc]
initWithTitle:@"Test Title"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:@"Destructive"
otherButtonTitles: @"abc", @"xyz",
nil] autorelease];
在上面的代码中,参数 otherButtonTitles 可以有无限数量的 NSString 像“abc”,“xyz”,.. 可以使用其他类型的参数来做到这一点吗?
提前致谢!。
How can i make method with parameter is unlimited array like this :
UIActionSheet *actionSheet = [[[UIActionSheet alloc]
initWithTitle:@"Test Title"
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:@"Destructive"
otherButtonTitles: @"abc", @"xyz",
nil] autorelease];
In above code, parameter otherButtonTitles can have unlimit number of NSString like "abc", "xyz",..
Can do this with other type of parameter?
Thanks in advance!.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以对任何类型的对象执行此操作。
在标题
实现中
You can do it with any type of object.
In the header
Implementation