Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须将第一个数组中的值调用到下一个数组。但是我在声明数组时收到了这条消息:-
SecondViewController *second = [[SecondViewController alloc] init]; NSMutableArray *_iArray = [second initWithMethod:@"jjsh" :@"jkhfhads"];
如何纠正它以阻止我的应用程序崩溃?
initWithMethod: 这个方法的返回类型是 (id),它会说它是 SecondViewController 的初始化器。如果您要初始化数组。然后使用NSMutableArray方法的返回类型initWithMethod
initWithMethod
NSMutableArray