Я использовал несколько UIStoryboard в своем приложении, но обнаружил, что когда я сменил раскадровку, старый не выпустил, как выпустить старый? следующий код:Как выпустить UIStoryboard
if([ModuleTeacher isEqualToString:type]){
[self loginStateChanged];
if([TeacherProfile getCurrentTeacher]!=nil){
[self startPull];
}
}else if([ModuleStudent isEqualToString:type]){
UIStoryboard *main = [UIStoryboard storyboardWithName:@"StudentMain" bundle:nil];
self.window.rootViewController = [main instantiateInitialViewController];
if([StudentProfile getCurrent]!=nil){
[self startPull];
}
}else if([ModuleOrgnization isEqualToString:type]){
UIStoryboard *main = [UIStoryboard storyboardWithName:@"OrganizeMain" bundle:nil];
self.window.rootViewController = [main instantiateInitialViewController];
[AppCache setModule:type];
}
таким образом старая раскадровка никогда не будет выпущена.
Откуда вы знаете, что не выпустили? – HalR