Skip to content

Commit 772db06

Browse files
committed
查看md文件的bug
1 parent d390597 commit 772db06

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Coding_iOS/Controllers/FileViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ - (void)loadWebView:(NSURL *)fileUrl{
131131
[_activityIndicator setCenter:CGPointMake(CGRectGetWidth(_contentWebView.frame)/2, CGRectGetHeight(_contentWebView.frame)/2)];
132132
[_contentWebView addSubview:_activityIndicator];
133133
[self.view addSubview:_contentWebView];
134+
[_contentWebView mas_makeConstraints:^(MASConstraintMaker *make) {
135+
make.edges.equalTo(self.view);
136+
}];
134137
}
135138
if ([self.curFile.fileType isEqualToString:@"md"]){
136139
NSError *error = nil;

0 commit comments

Comments
 (0)