UIScrollView *sv = [[UIScrollView alloc] initWithFrame:self.view.bounds];
UIView *uv = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 1000)];
[sv addSubview:uv];
UIImage* image1 = [UIImage imageNamed:shopInfo.shopImage1];
UIImage* image2 = [UIImage imageNamed:shopInfo.shopImage2];
UIImage* image3 = [UIImage imageNamed:shopInfo.shopImage3];
UIImageView *imageView1 = [[UIImageView alloc]initWithImage:image1];
[imageView1 setFrame:CGRectMake(0, 0, 320, 250)];
UIImageView *imageView2 = [[UIImageView alloc]initWithImage:image2];
[imageView2 setFrame:CGRectMake(0, 250, 320, 250)];
UIImageView *imageView3 = [[UIImageView alloc]initWithImage:image3];
[imageView3 setFrame:CGRectMake(0, 500, 320, 250)];
[sv addSubview:imageView1];
[sv addSubview:imageView2];
[sv addSubview:imageView3];
sv.contentSize = uv.bounds.size;
[self.view addSubview:sv];
wv.delegate = self;
[self.view addSubview:wv];
[wv loadRequest:req];
}
if ([shopInfo.title isEqualToString: @"efish"]) {
UIWebView *wv = [[UIWebView alloc] initWithFrame:self.view.bounds];wv.delegate = self;
[self.view addSubview:wv];
NSURL *url = [NSURL URLWithString:@"https://www.google.co.jp/maps?layer=c&z=17&sll=34.995249,135.76737699999998&cid=3936563214001129964&panoid=CaVVTDZlP1gxnvhjlqwxWg&cbp=13,256.11499623763467,,0,0&q=efish&sa=X&ei=Rt7hUcbmLMqGkQWip4CoCQ&ved=0CM8BEKAfMA8"];
NSURLRequest *req= [NSURLRequest requestWithURL:url];[wv loadRequest:req];
}
コメント
コメントを投稿