ios - dvc 无法在新版 iOS 的 textview 中传递 NSString 数据?

标签 ios nsstring

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.";

这里数据没有像 9.1 这样的新版本的 iOS 传递

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

最佳答案

该代码不合法​​,无法编译:

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

你的意思是:

@"\t%@\n\""

或:

@"\t%@\n"

关于ios - dvc 无法在新版 iOS 的 textview 中传递 NSString 数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35839440/

相关文章:

ios - "+"字符的 iOS 正确 URL 编码是什么?

iphone - 如何从 NSString 连续国际字符准备 NSURL?

iphone - 不兼容的 Objective C 类型

ios - 每次应用程序打开时运行代码 - 更好的方法?

ios - 改变现有粒子的方向

objective-c - 无效的转换说明符 '+'

ios - 将更新坐标添加到 NSMutableArray

ios - 如何保持小数点后两位正确?

ios - 启动带有播放列表的 iOS Youtube 应用程序

ios - 上传的应用程序版本未显示 iTunesconnect