Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在向我的应用程序添加记事本功能,我想读取字符串的前十个字符并将该字符串用作表格视图中单元格的标题。
我想我可以使用substringFromIndex:.
substringFromIndex:
有人可以详细说明我该怎么做吗?
[@"1234567890" substringToIndex:6]
给你 123456