2014-03-19 3 views
0
- (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) 
+0

중괄호 ** ** **를 잊었습니까? 권리가 있어야합니다 :'- (IBAction) ButtonPress : (UIButton *) sender {}' – lee

+0

오, 나는 내가 공허의 끝에 있어야한다고 생각했습니다. 불쾌한 점을 테스트 해주세요. – user3436851

+0

왜 IBAction에 - (void) 메서드를 넣었습니까? – Granit

답변

0

당신이 무효 기능을 넣을 수 없습니다 밖으로 준다 - (IBAction를) ButtonPress : (있는 UIButton *) 보낸 다음과 같은 변화를 :

- (IBAction)ButtonPress:(UIButton *)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]; 
      } 
     } 
} 
+0

이 오류를 수정했지만이 오류가 발생한 후에는 '2014-03-19 10 : 41 : 54.497 AbteiRD [9272 : 70b] CFBundle 0x8a81ca0 (로드되지 않음) 2014-03-19 10 : 42 : 01.280 AbteiRD [9272 : 70b] - [mainViewController ButtonPressed :] : 코드를 변경 한 후 인식 할 수없는 선택기가 인스턴스 0x8ab5be0 (lldb) ' – user3436851

+0

으로 전송되었습니다. xib의 파일로 가서 ** 버튼에 대한 작업을 리메이크하십시오 ** – lee

+0

이제 끝났습니다. 그러나 이제 막대한 오류가있었습니다. ' : CGContextSetBlendMode : 0x00의 컨텍스트가 유효하지 않습니다. 이것은 심각한 오류입니다. 이 응용 프로그램 또는이 응용 프로그램이 사용하는 라이브러리는 잘못된 컨텍스트를 사용하므로 시스템 안정성과 안정성이 전반적으로 저하됩니다. 이 통지는 예의입니다.이 문제를 해결하십시오. 곧 업데이트 될 치명적인 오류가 될 것입니다. (lldb)' – user3436851