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.
我想知道是否可以通过使用按钮将 UITextView 中已编辑的文本保存到 sqlite3?如果可以,我可以在任何地方找到最简单的方法吗?一直在谷歌搜索,但徒劳无功。
当然。创建一个新方法并将其连接到按钮的touchUpInside事件。
touchUpInside
在该方法中,从 中获取文本UITextView,然后将其保存到您的数据库中。
UITextView
你在使用核心数据吗?还是直接查询 SQLite 数据库?