Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

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

Rev 25 Rev 26
Línea 87... Línea 87...
87
            i += 1
87
            i += 1
Línea 88... Línea 88...
88
            
88
            
89
        }
89
        }
Línea -... Línea 90...
-
 
90
    }
-
 
91
    
90
    }
92
 
91
    
93
    
92
    public func removeItem(id: Int) {
94
    public func removeItem(id: Int) {
Línea 93... Línea 95...
93
        let userNotificationDao = UserNotificationDao.sharedInstance
95
        let userNotificationDao = UserNotificationDao.sharedInstance
Línea 98... Línea 100...
98
            groups[i].notifications.remove(at:  groups[i].notifications.firstIndex(where: {  $0.id == id })!)
100
            groups[i].notifications.remove(at:  groups[i].notifications.firstIndex(where: {  $0.id == id })!)
Línea 99... Línea 101...
99
        
101
        
100
            i += 1
102
            i += 1
Línea 101... Línea -...
101
        }
-
 
102
        
-
 
103
        i = groups.count - 1
103
        }
104
        while i > 0 {
-
 
105
            if groups[i].notifications.count == 0 {
-
 
106
                groups.remove(at: i)
-
 
107
            }
-
 
108
        
-
 
Línea 109... Línea 104...
109
            i -= 1
104
        
Línea 110... Línea 105...
110
        }
105
        groups.remove(at:  groups.firstIndex(where: { $0.notifications.count == 0})! )