2011-07-26 5 views

답변

0

귀하의 stringWithFormat 호출이 누락 된 UITextFieldUILabel 매개 변수 : 여기에 내가 필요가 불통 생각 코드 줄은

// format your body text. I have added a couple of \n characters to move the label text to the third line. 
NSString *message = [NSString stringWithFormat:@"tex2.text %@\n\nlabel2.text %@", yourTextField.text, yourLabel.text]; 
+0

작동! 항목을 세로로 나열하는 방법이 있습니까? 이메일에서 다음과 같이 읽습니다. text 5 text 7 – TWcode

+0

@TWcode 일부 개행을 삽입하면됩니다. 내 대답을 업데이트 할게. – RedBlueThing

+0

텍스트 사이에 공간을 두 배로 늘일 수 있습니까? – TWcode

0

당신이 당신의 헤더에 TextField 및 라벨을 정의하면, 당신이 할 수있는 다음과 같은 값을 얻으십시오.

NSString *message = [NSString stringWithFormat:@"tex2.text %@ label2.text %@",myTextField.text, myLabel.text];