2012-02-14 2 views
0

내 아이 패드 응용 프로그램에서 다음 버튼을 한 다음은 는 I/O - 오류

subject = [[UIButton alloc] init]; 
subject.frame = CGRectMake(710, 5, 180, 30); 

[[subject layer] setCornerRadius:8.0f]; 
[[subject layer] setMasksToBounds:YES]; 
[[subject layer] setBorderWidth:3.0f]; 
[[subject layer] setBackgroundColor:[[UIColor greenColor] CGColor]]; 
subject.titleLabel.font = [UIFont boldSystemFontOfSize:20]; 
[subject setTitleColor:[UIColor redColor] forState:UIControlStateNormal]; 
[subject setTitleColor:[UIColor whiteColor] forState:UIControlEventAllEvents]; 
[subject addTarget:self action:@selector(subjectPressed) forControlEvents:UIControlEventTouchUpInside]; 
[subject setTitle:@"Subject: ?" forState:UIControlStateNormal]; 
[[subject layer] setBorderColor:[[UIColor greenColor] CGColor]]; 
[self.view addSubview:subject]; 

내가 버튼을 클릭 할 때 호출되는 함수입니다 : - subjectPressed (무효) {

UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Subject" message:@"Please enter the Subject:" delegate:self cancelButtonTitle:@"Continue" otherButtonTitles:nil]; 
alert.tag = 0; 
alert.alertViewStyle = UIAlertViewStylePlainTextInput; 
UITextField * alertTextField = [alert textFieldAtIndex:0]; 
alertTextField.keyboardType = UIKeyboardTypeNumberPad; 
alertTextField.placeholder = @"Enter Subject"; 
[alert show]; 

}

I 버튼을 클릭하면, 나는 다음과 같은 오류 얻을 :

이 내용은 무엇인가요? 다음 폴더에있는 파일을 삭제

답변

1

보십시오.

/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ 

다시 시작 Xcode를 다시에서 당신의 iPad를 연결

또 다른 비슷한 질문 :

warning: Unable to read symbols

+0

하지만이 아이 패드입니다 app ... – CodeGuy

+1

ipad 용 장치 지원 파일도이 폴더에 있습니다. 레거시 이름입니다. – danielbeard