GeezerVison is showing github.com — 调整Log · DoomYang/Coding-iOS@a2bcd03
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: Coding_iOS/AppDelegate.m +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -161,12 +161,12 @@ - (void)application:(UIApplication *)application didRegisterForRemoteNotificatio | 161 | 161 | [Login addUmengAliasWithCurUser:[Login isLogin]]; | 162 | 162 |
| 163 | 163 | NSString * deviceTokenStr = [XGPush registerDevice:deviceToken]; | 164 | | - NSLog(@"deviceTokenStr : %@", deviceTokenStr); | | 164 | + DebugLog(@"deviceTokenStr : %@", deviceTokenStr); | 165 | 165 | } | 166 | 166 |
| 167 | 167 | - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo | 168 | 168 | { | 169 | | - NSLog(@"didReceiveRemoteNotification-userInfo:-----\n%@", userInfo); | | 169 | + DebugLog(@"didReceiveRemoteNotification-userInfo:-----\n%@", userInfo); | 170 | 170 | [XGPush handleReceiveNotification:userInfo]; | 171 | 171 | [BaseViewController handleNotificationInfo:userInfo applicationState:[application applicationState]]; | 172 | 172 | } | @@ -216,7 +216,7 @@ - (void)customizeInterface { | 216 | 216 |
| 217 | 217 | #pragma mark URL Schemes | 218 | 218 | - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation{ | 219 | | - NSLog(@"path: %@, params: %@", [url path], [url queryParams]); | | 219 | + DebugLog(@"path: %@, params: %@", [url path], [url queryParams]); | 220 | 220 | return [self showPasswordWithURL:url]; | 221 | 221 | } | 222 | 222 |
| @@ -272,7 +272,7 @@ - (void)saveContext | 272 | 272 | if ([managedObjectContext hasChanges] && ![managedObjectContext save:&error]) { | 273 | 273 | // Replace this implementation with code to handle the error appropriately. | 274 | 274 | // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. | 275 | | - NSLog(@"Unresolved error %@, %@", error, [error userInfo]); | | 275 | + DebugLog(@"Unresolved error %@, %@", error, [error userInfo]); | 276 | 276 | abort(); | 277 | 277 | } | 278 | 278 | } | @@ -344,7 +344,7 @@ - (NSPersistentStoreCoordinator *)persistentStoreCoordinator | 344 | 344 | Lightweight migration will only work for a limited set of schema changes; consult "Core Data Model Versioning and Data Migration Programming Guide" for details. | 345 | 345 | | 346 | 346 | */ | 347 | | - NSLog(@"Unresolved error %@, %@", error, [error userInfo]); | | 347 | + DebugLog(@"Unresolved error %@, %@", error, [error userInfo]); | 348 | 348 | abort(); | 349 | 349 | } | 350 | 350 |
| |
Collapse file Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/CodeListViewController.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -84,7 +84,7 @@ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { | 84 | 84 | */ | 85 | 85 |
| 86 | 86 | - (void)goToVCWith:(CodeTree_File *)codeTreeFile andRef:(NSString *)ref{ | 87 | | - NSLog(@"%@", codeTreeFile.path); | | 87 | + DebugLog(@"%@", codeTreeFile.path); | 88 | 88 | if ([codeTreeFile.mode isEqualToString:@"tree"]) {//文件夹 | 89 | 89 | CodeTree *nextCodeTree = [CodeTree codeTreeWithRef:ref andPath:codeTreeFile.path]; | 90 | 90 | CodeListViewController *vc = [[CodeListViewController alloc] init]; | |
Collapse file Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/CodeViewController.m +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -85,7 +85,7 @@ - (void)sendRequest{ | 85 | 85 | - (void)refreshCodeViewData{ | 86 | 86 | if ([_myCodeFile.file.mode isEqualToString:@"image"]) { | 87 | 87 | NSURL *imageUrl = [NSURL URLWithString:[NSString stringWithFormat:@"%@u/%@/p/%@/git/raw/%@/%@", kNetPath_Code_Base, _myProject.owner_user_name, _myProject.name, _myCodeFile.ref, _myCodeFile.file.path]]; | 88 | | - NSLog(@"imageUrl: %@", imageUrl); | | 88 | + DebugLog(@"imageUrl: %@", imageUrl); | 89 | 89 | [self.webContentView loadRequest:[NSURLRequest requestWithURL:imageUrl]]; | 90 | 90 | }else if ([_myCodeFile.file.mode isEqualToString:@"file"]){ | 91 | 91 | NSString *contentStr = [WebContentManager codePatternedWithContent:_myCodeFile]; | @@ -95,7 +95,7 @@ - (void)refreshCodeViewData{ | 95 | 95 |
| 96 | 96 | #pragma mark UIWebViewDelegate | 97 | 97 | - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{ | 98 | | - NSLog(@"strLink=[%@]",request.URL.absoluteString); | | 98 | + DebugLog(@"strLink=[%@]",request.URL.absoluteString); | 99 | 99 | return YES; | 100 | 100 | } | 101 | 101 | - (void)webViewDidStartLoad:(UIWebView *)webView{ | |
Collapse file Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/ConversationViewController.m +2-5Lines changed: 2 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -327,7 +327,6 @@ - (void)scrollToBottomAnimated:(BOOL)animated | 327 | 327 |
| 328 | 328 | #pragma mark TTTAttributedLabelDelegate | 329 | 329 | - (void)attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithTransitInformation:(NSDictionary *)components{ | 330 | | - DebugLog(@"%@", components.description); | 331 | 330 | HtmlMediaItem *clickedItem = [components objectForKey:@"value"]; | 332 | 331 | [self analyseLinkStr:clickedItem.href]; | 333 | 332 | } | @@ -350,7 +349,7 @@ - (void)analyseLinkStr:(NSString *)linkStr{ | 350 | 349 | - (void)willTranspondMessage:(PrivateMessage *)message{ | 351 | 350 | __weak typeof(self) weakSelf = self; | 352 | 351 | [UsersViewController showTranspondMessage:message withBlock:^(PrivateMessage *curMessage) { | 353 | | - NSLog(@"%@, %@", curMessage.friend.name, curMessage.content); | | 352 | + DebugLog(@"%@, %@", curMessage.friend.name, curMessage.content); | 354 | 353 | [weakSelf doTranspondMessage:curMessage]; | 355 | 354 | }]; | 356 | 355 | } | @@ -362,7 +361,7 @@ - (void)doTranspondMessage:(PrivateMessage *)curMessage{ | 362 | 361 | }else{ | 363 | 362 | [[Coding_NetAPIManager sharedManager] request_SendPrivateMessage:curMessage andBlock:^(id data, NSError *error) { | 364 | 363 | if (data) { | 365 | | - NSLog(@"转发成功:%@, %@", curMessage.friend.name, curMessage.htmlMedia.contentOrigional); | | 364 | + DebugLog(@"转发成功:%@, %@", curMessage.friend.name, curMessage.htmlMedia.contentOrigional); | 366 | 365 | } | 367 | 366 | }]; | 368 | 367 | } | @@ -386,7 +385,6 @@ - (void)sendPrivateMessageWithMsg:(PrivateMessage *)nextMsg{ | 386 | 385 | } | 387 | 386 | [weakSelf dataChangedWithError:NO scrollToBottom:YES animated:YES]; | 388 | 387 | } progerssBlock:^(CGFloat progressValue) { | 389 | | - DebugLog(@"\n%.2f", progressValue); | 390 | 388 | }]; | 391 | 389 | } | 392 | 390 | - (void)deletePrivateMessageWithMsg:(PrivateMessage *)curMsg{ | @@ -474,7 +472,6 @@ - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ | 474 | 472 | && scrollView.contentOffset.y < 5) { | 475 | 473 | _preContentHeight = self.myTableView.contentSize.height; | 476 | 474 | [self refreshLoadMore:YES]; | 477 | | - DebugLog(@"加载更多"); | 478 | 475 | } | 479 | 476 | } | 480 | 477 |
| |
Collapse file Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/EditTaskViewController.m -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -562,7 +562,6 @@ - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{ | 562 | 562 |
| 563 | 563 | #pragma mark TTTAttributedLabelDelegate | 564 | 564 | - (void)attributedLabel:(TTTAttributedLabel *)label didSelectLinkWithTransitInformation:(NSDictionary *)components{ | 565 | | - DebugLog(@"%@", components.description); | 566 | 565 | HtmlMediaItem *clickedItem = [components objectForKey:@"value"]; | 567 | 566 | [self analyseLinkStr:clickedItem.href]; | 568 | 567 | } | |
Collapse file Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/FileListViewController.m +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -302,10 +302,10 @@ - (void)easeToolBar:(EaseToolBar *)toolBar didClickedIndex:(NSInteger)index{ | 302 | 302 | } | 303 | 303 |
| 304 | 304 | - (void)creatFolderBtnClicked{ | 305 | | - NSLog(@"新建文件夹"); | | 305 | + DebugLog(@"新建文件夹"); | 306 | 306 | __weak typeof(self) weakSelf = self; | 307 | 307 | [SettingTextViewController showSettingFolderNameVCFromVC:self withTitle:@"新建文件夹" textValue:nil type:SettingTypeNewFolderName doneBlock:^(NSString *textValue) { | 308 | | - NSLog(@"%@", textValue); | | 308 | + DebugLog(@"%@", textValue); | 309 | 309 | [[Coding_NetAPIManager sharedManager] request_CreatFolder:textValue inFolder:weakSelf.curFolder inProject:weakSelf.curProject andBlock:^(id data, NSError *error) { | 310 | 310 | if (data) { | 311 | 311 | if (weakSelf.curFolder) { | @@ -321,7 +321,7 @@ - (void)creatFolderBtnClicked{ | 321 | 321 | } | 322 | 322 |
| 323 | 323 | - (void)uploadFileBtnClicked{ | 324 | | - NSLog(@"上传文件"); | | 324 | + DebugLog(@"上传文件"); | 325 | 325 | // 相册 | 326 | 326 | if (![Helper checkPhotoLibraryAuthorizationStatus]) { | 327 | 327 | return; | @@ -353,7 +353,7 @@ - (void)downloadFilesBtnClicked{ | 353 | 353 | Coding_FileManager *manager = [Coding_FileManager sharedManager]; | 354 | 354 | for (ProjectFile *file in selectedFiles) { | 355 | 355 | if ([file hasBeenDownload] || [file cDownloadTask]) {//已下载,或正在下载 | 356 | | - NSLog(@"%@: 已在队列", file.name); | | 356 | + DebugLog(@"%@: 已在队列", file.name); | 357 | 357 | }else{ | 358 | 358 | [manager addDownloadTaskForFile:file completionHandler:nil]; | 359 | 359 | } | |
Collapse file Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/FileViewController.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -255,7 +255,7 @@ - (NSInteger)numberOfPreviewItemsInPreviewController:(QLPreviewController *)cont | 255 | 255 |
| 256 | 256 | #pragma mark UIWebViewDelegate | 257 | 257 | - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{ | 258 | | - NSLog(@"strLink=[%@]",request.URL.absoluteString); | | 258 | + DebugLog(@"strLink=[%@]",request.URL.absoluteString); | 259 | 259 | return YES; | 260 | 260 | } | 261 | 261 | - (void)webViewDidStartLoad:(UIWebView *)webView{ | |
Collapse file Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/FolderToMoveViewController.m +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -137,10 +137,10 @@ - (void)easeToolBar:(EaseToolBar *)toolBar didClickedIndex:(NSInteger)index{ | 137 | 137 | switch (index) { | 138 | 138 | case 0: | 139 | 139 | {//新建文件夹 | 140 | | - NSLog(@"新建文件夹"); | | 140 | + DebugLog(@"新建文件夹"); | 141 | 141 | __weak typeof(self) weakSelf = self; | 142 | 142 | [SettingTextViewController showSettingFolderNameVCFromVC:self withTitle:@"新建文件夹" textValue:nil type:SettingTypeNewFolderName doneBlock:^(NSString *textValue) { | 143 | | - NSLog(@"%@", textValue); | | 143 | + DebugLog(@"%@", textValue); | 144 | 144 | [[Coding_NetAPIManager sharedManager] request_CreatFolder:textValue inFolder:weakSelf.curFolder inProject:weakSelf.curProject andBlock:^(id data, NSError *error) { | 145 | 145 | if (data) { | 146 | 146 | if (weakSelf.curFolder) { | @@ -157,7 +157,7 @@ - (void)easeToolBar:(EaseToolBar *)toolBar didClickedIndex:(NSInteger)index{ | 157 | 157 | break; | 158 | 158 | case 1: | 159 | 159 | {//移动文件 | 160 | | - NSLog(@"移动文件"); | | 160 | + DebugLog(@"移动文件"); | 161 | 161 | if (self.moveToFolderBlock) { | 162 | 162 | self.moveToFolderBlock(self.curFolder, self.toMovedFileIdList); | 163 | 163 | } | |
Collapse file Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/MeSetting/SettingMineInfoViewController.m +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -247,7 +247,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath | 247 | 247 | [weakSelf.myTableView reloadData]; | 248 | 248 | }]; | 249 | 249 | } cancelBlock:^(ActionSheetDatePicker *picker) { | 250 | | - NSLog(@"%@", picker.description); | | 250 | + DebugLog(@"%@", picker.description); | 251 | 251 | } origin:self.view]; | 252 | 252 | picker.minimumDate = [[NSDate date] offsetYear:-120]; | 253 | 253 | picker.maximumDate = [NSDate date]; | @@ -426,7 +426,6 @@ - (void)imagePickerController:(UIImagePickerController *)picker didFinishPicking | 426 | 426 | } failureBlock:^(NSError *error) { | 427 | 427 | [weakSelf showError:error]; | 428 | 428 | } progerssBlock:^(CGFloat progressValue) { | 429 | | - DebugLog(@"%.1f", progressValue); | 430 | 429 | }]; | 431 | 430 |
| 432 | 431 | // 保存原图片到相册中 | |
Collapse file Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/NProjectViewController/NProjectViewController.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -371,7 +371,7 @@ - (void)gotoPro:(Project *)project{ | 371 | 371 | #pragma mark loadCellRequest | 372 | 372 | - (void)loadRequest:(NSURLRequest *)curRequest{ | 373 | 373 | NSString *linkStr = curRequest.URL.absoluteString; | 374 | | - NSLog(@"\n linkStr : %@", linkStr); | | 374 | + DebugLog(@"\n linkStr : %@", linkStr); | 375 | 375 | [self analyseLinkStr:linkStr]; | 376 | 376 | } | 377 | 377 |
| |
|