【发布时间】:2025-12-11 17:15:01
【问题描述】:
下面的代码正在运行,我可以在第二个屏幕中看到这些值。但是我在其他具有这种格式的不同变量的类中使用相同的方法。但是,如果在我用点键入类名之后,它不会向我显示变量。我想不通。有没有办法将值传递给其他类。
InstallProfiler_2 *installProfiler2 = [[InstallProfiler_2 alloc] initWithNibName:@"InstallProfiler_2" bundle:nil];
installProfiler2.profilerType2 = profilerType;
[self.navigationController pushViewController:installProfiler2 animated:NO];
[installProfiler2 release];
【问题讨论】:
-
你能给我们什么不工作而不是什么工作吗?
标签: objective-c ios class-variables