我试图为我用 xcode 编写的计时器程序设置一个数组。这些值以秒为单位,我想要的是在界面构建器中有一个按钮,它以该秒数启动计时器。这是我试图声明以在 .h 头文件中提供时间的结构。它只是一个包含 2 个数组的数组,我可以用 @collegeTimes.constructive 或类似的东西调用它。
提前致谢!
- (NSDictionary *)debateTimes;
id debateTimes = [[NSDictionary alloc] initWithObjectsAndKeys:
[NSDictionary dictionaryWithObjectsAndKeys:
@"540", @"constructive",
@"360", @"rebuttal",
@"180", @"cx",
@"600", @"prep",
nil], @"collegeTimes",
[NSDictionary dictionaryWithObjectsAndKeys:
@"480", @"constructive",
@"300", @"rebuttal",
@"180", @"cx",
@"480", @"prep",
nil], @"hsTimes",
nil]; \\error is called here.