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 b71593a

Browse filesBrowse files
committed
代码里面的图片不能显示的bug
1 parent 3e96b33 commit b71593a
Copy full SHA for b71593a

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎Coding_iOS/Controllers/CodeViewController.m‎

Copy file name to clipboardExpand all lines: Coding_iOS/Controllers/CodeViewController.m
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ - (void)doSomethingWithResponse:(id)data andError:(NSError *)error{
100100

101101
- (void)refreshCodeViewData{
102102
if ([_myCodeFile.file.mode isEqualToString:@"image"]) {
103-
NSURL *imageUrl = [NSURL URLWithString:[NSString stringWithFormat:@"%@u/%@/p/%@/git/raw/%@", [NSObject baseURLStr], _myProject.owner_user_name, _myProject.name, [NSString handelRef:_myCodeFile.ref path:_myCodeFile.file.path]]];
103+
// NSURL *imageUrl = [NSURL URLWithString:[NSString stringWithFormat:@"%@u/%@/p/%@/git/raw/%@", [NSObject baseURLStr], _myProject.owner_user_name, _myProject.name, [NSString handelRef:_myCodeFile.ref path:_myCodeFile.file.path]]];
104+
NSURL *imageUrl = [NSURL URLWithString:[NSString stringWithFormat:@"%@u/%@/p/%@/git/raw/%@/%@", [NSObject baseURLStr], _myProject.owner_user_name, _myProject.name, _myCodeFile.ref, _myCodeFile.file.path]];
104105
DebugLog(@"imageUrl: %@", imageUrl);
105106
[self.webContentView loadRequest:[NSURLRequest requestWithURL:imageUrl]];
106107
}else if ([_myCodeFile.file.mode isEqualToString:@"file"] ||

0 commit comments

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