【发布时间】:2013-04-18 10:08:23
【问题描述】:
这个已解决的stackoverflow答案对我不起作用,我不知道为什么。
Height of UIWebView minus 44px programmatically?
CGRect oldFrame = WebView.frame;
CGRect newFrame =CGRectMake(oldFrame.origin.x, oldFrame.origin.y, oldFrame.size.width, oldFrame.size.height-44);
[WebView setFrame:newFrame];
【问题讨论】:
-
真的这么叫吗?是
self.webView != nil? -
检查 [this][1] 请检查链接 希望这有帮助 [1]:stackoverflow.com/questions/14868668/…
-
@DrummerB 如果我打电话 if (self.webView != nil) NSLog(@"Yes");那么这一行就叫做
-
@ChiragPipaliya 我试过了,但它也不想工作。
标签: ios objective-c webview