[英]Expected Expression error in XCode for IOS
Thanks for all your help previously! 感谢您之前的所有帮助! I have finally created a functioning Open GL game. 我终于创建了一个运行正常的Open GL游戏。 Only problem is that there is an error in the most basic part of the UI. 唯一的问题是,UI的最基本部分存在错误。 The IBAction. IBAction。 Here is a screenshot of XCode at the time of the error (yes I finally can put in images!) 这是发生错误时XCode的屏幕截图(是的,我终于可以放入图像了!)
The code 编码
-(IBAction)returnpress
{
cruzia.hidden = 0;
textarea.hidden = 0;
playbtn.hidden = 0;
tutorialbtn.hidden = 0;
optionsbtn.hidden = 0;
trainingbtn.hidden = 0;
back.hidden = 1;
soundlbl.hidden = 1;
music.hidden = 1;
sound.hidden = 1;
musiclbl.hidden = 1;
cruzia.text = @"Cruzia";
textarea.text = @"";
if (clicked == 1) {
CFBundleRef mainBundle = CFBundleGetMainBundle();
CFURLRef soundFileURLRef;
soundFileURLRef =CFBundleCopyResourceURL(mainBundle, (CFStringRef) @"click", CFSTR ("electronic click.wav"), NULL);
UInt32 soundID;
AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID);
AudioServicesPlaySystemSound(soundID);
}
}
Is always bringing up the error: expected expression If anyone can tell me how to rid myself of this error, I would be very appreciative. 总是出现错误: 期望的表达方式如果有人可以告诉我如何摆脱这个错误,我将非常感激。
-George -乔治
The problem is not with that method, it is with the one before it. 问题不在于该方法,而在于它之前的方法。 You forgot to close the previous method with a closing curly brace. 您忘记了用大括号关闭前一个方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.