English 中文(简体)
奥斯托纽顿t ttap - noob issue
原标题:ios button doesn t tap - noob issue
  • 时间:2012-05-11 00:16:19
  •  标签:
  • ios
  • xcode

因此,我是一位新的信使,正在做我的第一项工作。 我有三重团结游戏,我作为Xcode项目出口,我的目标是在接触游戏之前添加一个宇宙观。 我要说的是,我为此而努力。 我亲眼看着一些神学(great!),阅读了我认为适用的一些理论,但我 st。 这里我要说的是:

我劫持了主案卷,装载我的AppDelegate(而不是一个团结联盟)。 我 然后,上诉人装上我的书记员的笔记,并将之作为窗子添加。 在我的《意见》中,我有:

-(IBAction) displayView:(id) sender{
 UIAlertView *alert = [[UIAlertView alloc] 
 initWithTitle:@"Button Pressed" 
 message:@"You have pressed the Button view."
 delegate:nil
 cancelButtonTitle:@"OK" 
 otherButtonTitles:nil];
 [alert show];
 [alert release];   
}

我只想就点击发出警报。 我的职能在<代码>-(国际行动)显示发音机:id) 发件;。

在事情方面,我补充说,在我的名单上的档案中,I号是Main Nib 档案基地的名称。

接着,我从图书馆、我的阿普埃莱特和我的书记员那里补充了主妇dow的Interface Buildinger。 就我的AppDelegate而言,我补充了我的主计长兼主计长意见,认为窗户是窗户,参考资料是档案所有人。 我的书记员是我的书记员。 (坦率地说,这一部分混淆了我。) 这与我的“加拿大”网站背景相比没有很大的必然结果。

在我的“Controller.xib”意见中,档案所有人是我的“Controller”。 收到的行动表明我的职能(显示意见)与纽芬兰的联系。 然后,我认为,我开了这番话,用一般的蚊虫(布顿、日皮cker等)加以涂 red。 我看一看一个县在显示意见时会有所触动。

因此,根据我所做的所有工作,我把手装在我的装置上,我完全看到我的看法。 但没有任何东西是棘手的。 我期望利用我的纽特来显示上述警报。 但情况并非如此。 事实上没有发生。 因此,我怀疑,所有这一切都是不正确的。 但是,纽伦还是 t? 我期望白子在我主食时会爆发蓝色(down状态)。 此外,我预计,当我与它互动时,日期选择者(没有被看上去工作)。

如同我所说的话一样。 是否有任何人认为我会做什么错呢? 事先感谢你们的帮助!

问题回答

颁布这一法典:

-(IBAction) displayView:(id) sender{

UIAlertView * myAlert;

myAlert = [[UIAlertView alloc]initWithTitle:@"Button Pressed" 
  message:@"You have pressed the Button view."
  delegate:nil
  cancelButtonTitle:@"OK" 
  otherButtonTitles:nil];

 [myAlert show]; 
 /* And make sure to have this action connected to your button in xib           
 file */

}




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

热门标签