0
當創建在Xcode 4新出口進入像通常必要的代碼,但它前綴一個_在頭文件接口(但不是在屬性):創建連接_
UINavigationController *_mainNavController;
UIViewController *_rootView;
它也做到這一點的實現文件:
@synthesize mainNavController = _mainNavController;
@synthesize rootView = _rootView;
雖然我當然可以用前綴_使用它們,它只是讓我的代碼雜亂。我在做可怕的錯誤嗎?
非常感謝提前。
哦,它現在有道理!非常感謝你。 – GarethPrice
@GarethPrice不客氣:) – albertamg