2016-03-07 45 views
0
NSString *str1 = @"offers unique programmes for children aged between 18 months to 6 years in an in an opulent property in the heart of Powai. Our large property has ample outdoor space which makes outdoor learning an integral part of the children's day-to-day curriculum and provides opportunities to engage with the natural environment."; 

这里的数据是不是在新版iOS传球像9.1在新版iOS中,dvc无法在textview中传递NSString数据?

dvc.details=[NSString stringWithFormat:@"\t%@\n", str1]; 
+0

你是什么意思“不通过”。 – Larme

+0

表示在textview中不显示NSString数据。示例(NSString * st = @“something”; dvc.details = [NSString stringWithFormat:@“\ t%@ \ n”,str1];) –

+0

什么是'dvc'?什么是'dvc.details'? 'dvc'代表“destinationViewController”?然后,显示你阅读它的位置可能会有所帮助。因为我猜如果你在设置它之后记录数值,它会起作用吗? – Larme

回答

1

该代码是不合法的,并不会编译:

dvc.details=[NSString stringWithFormat:@"\t%@\n\", str1] 
               ^^ 

你要么意味着:

@"\t%@\n\"" 

或:

@"\t%@\n"