【问题标题】:Creating a new xcode project with single page application while Appdelegate file在 Appdelegate 文件中使用单页应用程序创建新的 xcode 项目
【发布时间】:2012-01-03 05:41:38
【问题描述】:

我在创建新项目时使用单页应用程序创建新项目,但它们没有问题但是下面的事情我无法理解,

1)当创建项目时,应用程序文件名通常是项目名称,然后是“Appdelegate.h”和项目名称,然后是“Appdelegate.m”,但在我的情况下,它们只有“Appdelegate.h”和“Appdelegate.m”

2)如何更改创建项目时Appdelegate名称是应用程序名称然后是“Appdelegate.h”和应用程序名称然后是“Appdelegate.m”

就像我的项目名称是“TestApplciation”

然后创建的 AppDelegate 文件名是 TestApplciationAppDelegate.h TestApplciationAppDelegate.m

但在我的情况下,这不是一个通常的创建,那么如何明智地创建。

在此先感谢您对我的帮助。 iPhone 技术

【问题讨论】:

  • 请不要创建不相关的标签。

标签: iphone xcode xcode4


【解决方案1】:

AppDelegateTestApplicationAppDelegate 在技术上没有区别。没有任何理由改变它。 Apple 决定在新版本的 Xcode 中不再使用旧的 AppDelegate 命名约定,因为它很混乱。

如果出于某种原因你真的想这样做,你可以打开 AppDelegate.h 并在 @interface 后面右击 AppDelegate 并选择 Refactor->Rename。

【讨论】:

  • 感谢您花费宝贵的时间并分享您的宝贵知识。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2011-01-14
  • 1970-01-01
  • 2023-04-04
  • 1970-01-01
  • 1970-01-01
  • 2012-08-25
  • 1970-01-01
相关资源
最近更新 更多