我对不同的 nib 文件使用相同的类文件。在第一个 nib 文件中,我使用文本字段获取用户信息,现在我需要第二个 nib 中第一个 nib 文件中的文本字段中的这些信息。我怎样才能得到那些?
问问题
60 次
1 回答
0
If they have a shared parent, you can access one from the other using self.parentViewController.childViewControllers
. I'm not sure if this is necessarily best practice, though.
It seems like there wouldn't be a good reason to have two different views use the same class, though. Could you elaborate on why you are doing that?
于 2013-05-21T19:01:59.347 回答