Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 17 | Rev 23 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17 Rev 22
Línea 22... Línea 22...
22
    {
22
    {
23
        let userNotificationDao = UserNotificationDao.sharedInstance
23
        let userNotificationDao = UserNotificationDao.sharedInstance
24
        notifications = userNotificationDao.selectAll();
24
        notifications = userNotificationDao.selectAll();
25
    }
25
    }
Línea -... Línea 26...
-
 
26
    
-
 
27
    public func removeItem(id: Int) {
-
 
28
        let userNotificationDao = UserNotificationDao.sharedInstance
-
 
29
        userNotificationDao.remove(id: id)
-
 
30
           notifications.remove(at: notifications.firstIndex(where: {  $0.id == id })!)
-
 
31
    }
Línea 26... Línea 32...
26
    
32