jjzjj

RLMNotificationToken

全部标签

ios - 警告 : RLMNotificationToken released without unregistering

我在UITableView的上下文中使用RLM通知,UITableView是带有UIPageViewDelegate的UIViewController的subview。ViewController是动态创建的,在滑动到下一个ViewController后被销毁。但总是可以向后滑动一页。因此,我无法销毁通知token。但后来我收到警告:RLMNotificationTokenreleasedwithoutunregisteringanotification.YoumustholdontotheRLMNotificationTokenreturnedfromaddNotificationB