English 中文(简体)
2. 在其拥有财产时创建雇主
原标题:Creating a UILabel when it s a property

我认为,我是一小.,但我不禁要问,你能否就此提出一些看法。

I have a single view app with a view and a button. In my viewControllers button action I want to create a label on screen.

如果我贴上以下标签:UIlabel * 标签 = [UIlabel alloc] init withframe. 罚款。

然而,如果我提出我的看法,我就认为,我只想谈谈我的看法。 主计长a uilabel Property,然后尝试并贴上标签: Self.mylabel = [UILabel alloc] initWithFrame。 当我添加标签时,它就没有出现。

我知道还有其他实现这一点的方法,但我只是想到,为什么会发生这种情况,除非我是一个巨大的主人,!

是否有任何人想?

最佳回答

确保你增加这一意见,将其作为一种观点。 主计长的意见。

http://www.un.org/Depts/DGACM/index_french.htm

问题回答

在你看来,你的标签很可能是零的。 如果你确信,你的标签至少是正确的,那么就明确检查了它是如何保留(或不保留)的。

例如,如果你已宣布“weak”,那么你就需在范围上采用标识。

在你增加标签时,在守则中规定一个空白点,以便你知道正在发生什么。





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

热门标签