Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5131e55

Browse filesBrowse files
committed
控制器释放的时候,将继承于UIScrollView的View的代理置空
1 parent 38ebcdd commit 5131e55
Copy full SHA for 5131e55
Expand file treeCollapse file tree

25 files changed

+143
-0
lines changed
Open diff view settings
Collapse file

‎Coding_iOS/Controllers/AddUserViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/AddUserViewController.m
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,5 +193,11 @@ - (void)searchUserWithStr:(NSString *)string{
193193
}
194194

195195

196+
- (void)dealloc
197+
{
198+
_myTableView.delegate = nil;
199+
_myTableView.dataSource = nil;
200+
}
201+
196202

197203
@end
Collapse file

‎Coding_iOS/Controllers/ConversationViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/ConversationViewController.m
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,4 +442,10 @@ - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{
442442
DebugLog(@"加载更多");
443443
}
444444
}
445+
446+
- (void)dealloc
447+
{
448+
_myTableView.delegate = nil;
449+
_myTableView.dataSource = nil;
450+
}
445451
@end
Collapse file

‎Coding_iOS/Controllers/EditTaskViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/EditTaskViewController.m
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,4 +485,10 @@ - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{
485485
}
486486
}
487487

488+
- (void)dealloc
489+
{
490+
_myTableView.delegate = nil;
491+
_myTableView.dataSource = nil;
492+
}
493+
488494
@end
Collapse file

‎Coding_iOS/Controllers/FileListViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/FileListViewController.m
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,4 +501,10 @@ - (NSInteger)numberOfPreviewItemsInPreviewController:(QLPreviewController *)cont
501501
return [BasicPreviewItem itemWithUrl:curFileUrl];
502502
}
503503

504+
- (void)dealloc
505+
{
506+
_myTableView.delegate = nil;
507+
_myTableView.dataSource = nil;
508+
}
509+
504510
@end
Collapse file

‎Coding_iOS/Controllers/FolderToMoveViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/FolderToMoveViewController.m
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,4 +149,10 @@ - (void)easeToolBar:(EaseToolBar *)toolBar didClickedIndex:(NSInteger)index{
149149
}
150150
}
151151

152+
- (void)dealloc
153+
{
154+
_myTableView.delegate = nil;
155+
_myTableView.dataSource = nil;
156+
}
157+
152158
@end
Collapse file

‎Coding_iOS/Controllers/LikersViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/LikersViewController.m
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,5 +218,11 @@ - (void)updateFilteredContentForSearchString:(NSString *)searchString{
218218
self.searchResults = [[self.searchResults filteredArrayUsingPredicate:finalCompoundPredicate] mutableCopy];
219219
}
220220

221+
- (void)dealloc
222+
{
223+
_myTableView.delegate = nil;
224+
_myTableView.dataSource = nil;
225+
}
226+
221227

222228
@end
Collapse file

‎Coding_iOS/Controllers/Login/LoginViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/Login/LoginViewController.m
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,4 +237,10 @@ - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger
237237
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:kNetPath_Code_Base]];
238238
}
239239
}
240+
241+
- (void)dealloc
242+
{
243+
_myTableView.delegate = nil;
244+
_myTableView.dataSource = nil;
245+
}
240246
@end
Collapse file

‎Coding_iOS/Controllers/MeSetting/SettingAccountViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/MeSetting/SettingAccountViewController.m
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,10 @@ - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSIntege
8080
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
8181
[tableView deselectRowAtIndexPath:indexPath animated:YES];
8282
}
83+
84+
- (void)dealloc
85+
{
86+
_myTableView.delegate = nil;
87+
_myTableView.dataSource = nil;
88+
}
8389
@end
Collapse file

‎Coding_iOS/Controllers/MeSetting/SettingMineInfoViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/MeSetting/SettingMineInfoViewController.m
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,5 +437,10 @@ - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker{
437437
[picker dismissViewControllerAnimated:YES completion:nil];
438438
}
439439

440+
- (void)dealloc
441+
{
442+
_myTableView.delegate = nil;
443+
_myTableView.dataSource = nil;
444+
}
440445

441446
@end
Collapse file

‎Coding_iOS/Controllers/MeSetting/SettingPasswordViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/MeSetting/SettingPasswordViewController.m
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,10 @@ - (void)doneBtnClicked:(id)sender{
143143
}];
144144
}
145145

146+
- (void)dealloc
147+
{
148+
_myTableView.delegate = nil;
149+
_myTableView.dataSource = nil;
150+
}
151+
146152
@end

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.