- (IBAction)ButtonPress:(UIButton *)sender {
- (void) ButtonPressed: (id) sender
{
if (sender != self.done)
return;
if (self.zahlencode.text.length > 0)
{
zz =[self.zahlencode.text intValue];
if(zz == a)
{
[self performSegueWithIdentifier:@"1" sender:self];
}
}
}
}
在虚空ButtonPressed有,说Use of undeclared ButtonPressed
如果我用这个没有动作的应用程序建立一个崩溃的错误。我把那里的异常断点,并给出了此错误IBAction为未知错误
2014-03-19 10:19:53.295 AbteiRD[8873:70b] Cannot find executable for CFBundle 0x8a91780 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/System/Library/AccessibilityBundles/CertUIFramework.axbundle> (not loaded)
(lldb)
你忘了支撑**} **?正确的必须是:' - (IBAction)ButtonPress:(UIButton *)sender {}' – lee
哦,我以为我必须在虚空的尽头。生病测试 – user3436851
为什么你把IBAction中的 - (void)方法? – Granit