fix attribution frame problems on iOS 6
Showing
1 changed file
with
3 additions
and
1 deletions
@@ -49,7 +49,9 @@ | @@ -49,7 +49,9 @@ | ||
49 | 49 | ||
50 | [self.view addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismiss:)]]; | 50 | [self.view addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(dismiss:)]]; |
51 | 51 | ||
52 | - UIWebView *webView = [[UIWebView alloc] initWithFrame:self.view.bounds]; | 52 | + CGRect frame = (RMPostVersion7 ? self.view.bounds : CGRectMake(0, self.view.bounds.size.height - 70, self.view.bounds.size.width, 60)); |
53 | + | ||
54 | + UIWebView *webView = [[UIWebView alloc] initWithFrame:frame]; | ||
53 | webView.delegate = self; | 55 | webView.delegate = self; |
54 | webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin; | 56 | webView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin; |
55 | webView.backgroundColor = [UIColor clearColor]; | 57 | webView.backgroundColor = [UIColor clearColor]; |
-
Please register or login to post a comment