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.
IOSアプリでswiftとrealmをいじっています。
realm.addNotificationBlock を使用して tableView をリロードしようとしています。しかし、これを実装する方法がわかりません。誰かが正確なコード例を手伝ってくれますか?
ありがとう
addNotificationBlock を使用している場合、addNotificationBlock: の命名は最新の Swift 命名規則とあまり一致していないようです。そのため、このコードを使用してください。
notificationToken = realm.observe { (notification, realm) in }