我想从繁重的用户即名称和位置处的两个值,然后想将它们连接为一个字符串,以产生输出字符串如何连接两个的UITextField值成一个字符串在iphone
IBOutlet UITextField *txtName;
IBOutlet UITextField *txtLoc;
要连接它们以产生下面的字符串。
学生姓名是txtName的和他是从txtLoc
基本上这就是我的完整代码。
NSString *message = [NSString stringWithFormat:@"Student Name is %@ from %@ phone Number is%@ and he want to say%", txtName.text, txtLoc.text,txtPho.text,txtBody.text];
-(void) send:(id) sender {
[self sendEmailTo:@"[email protected]" withSubject:@"Contact for Quran Focus from iphone Application" withBody:message];
这就是我想要做的。 和EM收到错误
'txtName的' 不宣而这里(不是在一个函数)
'txtLoc' 不宣而这里(不是在一个函数) 'txtPho' 不宣而这里(不是在一个函数) “txtBody '这里没有声明(不是功能)
虽然我已经正确地宣布所有网点。
concatenate - spelling :) – 2010-08-24 12:31:46
@我的拼写呃上帝保佑我...... :) – 2010-08-24 12:56:59