【发布时间】:2014-01-17 06:34:49
【问题描述】:
我是 iOS 新手,只需要制作一个加载 URL 的小型原生应用程序,该应用程序托管在 IIS 上并在 Jquery 移动设备上制作。 问题是当我改变方向时,它从右侧剪裁,而同样的东西在所有 android 设备上都正常工作。 请帮帮我
这是我的代码
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
UIWebView *webView=[[UIWebView alloc]initWithFrame:CGRectMake(0.0, 0.0,768,1024)];
NSString *httpSource=@"http://www.mydomain.com";
NSURL *fullUrl=[NSURL URLWithString:httpSource];
NSURLRequest *httpRequest=[NSURLRequest requestWithURL:fullUrl];
webView.delegate=self;
[webView loadRequest:httpRequest];
[self.view addSubview:webView];
// Do any additional setup after loading the view, typically from a nib.
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end
【问题讨论】:
标签: objective-c cocoa-touch ios6 uiwebview