English 中文(简体)
如何在 XCode 4. 3 中创建新的查看控制器
原标题:How to create new View Controllers in XCode 4.3
  • 时间:2012-05-22 19:39:00
  •  标签:
  • iphone
  • xcode

所以我在 XCode 4. 3 中发现, 要创建一个新的查看控制器, 我就必须做新 & gt; 目标- C 类, 然后做小类 UIVO 控制器 。 但是, 为什么xib 复选框被灰化了? 我如何用xib 创建一个新的视图控制器?

""https://i.sstatic.net/X5g4V.png" alt="此处输入图像描述"/ >

最佳回答

看起来你正试图在iOS项目中 添加 OS X 目标- C 类

""https://i.sstatic.net/ZccUG.png" alt="此处输入图像描述"/ >

产生这个...

""https://i.sstatic.net/yY0mg.png" alt="此处输入图像描述"/ >

相反,添加这样的新文件...

""https://i.sstatic.net/pBZXUB.png" alt="在这里输入图像描述"/ >

产生这个...

""https://i.sstatic.net/pt3xm.png" alt="此处输入图像描述"/ >

问题回答

我不知道为什么黑字框灰色化(对我来说不会发生), 但是您总是可以直接去新文件, 从那里创建新文件, 并将其类设置为您在界面构建器中的 UIVocentral 子类 。

这是一个错误, 只要在 < strong > 组合的 < / strong > 子类中再次选择 UIView 控制器, 将会再次启用它 。

当我取消一次创作 并再次打开了对话时 发生在我身上





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签