2011-08-24 5 views
0

텍스트 필드의 텍스트를 경고보기에 삽입하려면이 코드를 사용하지 않습니까? 텍스트가 있어야하는 곳은 다음과 같습니다. 당신의 도움을 주셔서 감사합니다!텍스트 필드의 텍스트를 경고보기에 삽입하는 방법

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Title" message:@"Message: %@",textField.text delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; 

[alert show]; 
[alert release]; 

답변

1

사용이 :

... message:[NSString stringWithFormat:@"Message: %@",textField.text] ... 
+0

멋진, 감사합니다! –

관련 문제