質問編集履歴

1

[appWebView loadRequest:req];

2022/03/17 08:16

投稿

momiji0210
momiji0210

スコア60

test CHANGED
File without changes
test CHANGED
@@ -18,12 +18,13 @@
18
18
  [appWebView loadRequest:req];
19
19
 
20
20
  // こっちだと切れない
21
- UIWebView appWebView = [[[UIWebView alloc] init] autorelease];
21
+ UIWebView appWebView2 = [[[UIWebView alloc] init] autorelease];
22
- appWebView.frame = CGRectMake(0, 0, 320, 38);
22
+ appWebView2.frame = CGRectMake(0, 0, 320, 38);
23
- appWebView.scalesPageToFit = YES;
23
+ appWebView2.scalesPageToFit = YES;
24
- appWebView.scrollView.scrollEnabled = NO;
24
+ appWebView2.scrollView.scrollEnabled = NO;
25
- [appWebView setBackgroundColor:[UIColor clearColor]]; //背景透過
25
+ [appWebView2 setBackgroundColor:[UIColor clearColor]]; //背景透過
26
- [appWebView setOpaque:NO]; //背景透過
26
+ [appWebView2 setOpaque:NO]; //背景透過
27
+ [appWebView2 loadRequest:req];
27
28
 
28
29
  }
29
30
  ```