0
当创建在Xcode 4新出口进入像通常必要的代码,但它前缀一个_在头文件接口(但不是在属性):创建连接_
UINavigationController *_mainNavController;
UIViewController *_rootView;
它也做到这一点的实现文件:
@synthesize mainNavController = _mainNavController;
@synthesize rootView = _rootView;
虽然我当然可以用前缀_使用它们,它只是让我的代码杂乱。我在做可怕的错误吗?
非常感谢提前。
哦,它现在有道理!非常感谢你。 – GarethPrice
@GarethPrice不客气:) – albertamg