English 中文(简体)
Can t为OS找到NSButton
原标题:Can t find NSButton for iOS

i am using xcode4 and storyboard to create an application form. I would like to add check button and found using NSButton is the best way, but I could not find NSButton in the object library. Would you please tell me how to find it?

最佳回答

NSButton是可可类,可在MacOS,而不是OS。 本组织没有标准检查箱,因此,你不得不使用UIButton,在选定的/选定的州使用海关图像,而不是使用。

或者(可能更好)你可以使用标准<代码>UISwitch控制,这种控制的目的类似。

问题回答

如果是SOS方案,则没有NSButton,因为这是一个MacOS X 科阿班。 相反,你希望使用“可可豆”类,以<条码>为准。

The Best way is to create a two buttons with custom images for example:button1 and button2 are there.
In view will appear you have to show button1 only,when user click on button1,hide button1 and show button2,even if user click on button2,you have hide button2 and show button1





相关问题
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 ...

热门标签