スキップしてメイン コンテンツに移動

all coding


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];



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];
    }

コメント

このブログの人気の投稿

日本に来た 今三週間

四月六日に日本に来た、今三週間になった。 嬉しくなかった、悲しくなかった。 日本の携帯電話のカメラはとてもいいよ、私は今撮影が好きだ、いつも寮に帰る途中で花とか魚とか写真を撮る。これも生活の趣味だ。 滴は綺麗だ 桜が凋んで落ちる 天気がいいとき、自転車に乗って、食材を買った。 自分で料理をつくる、おいしそうでしょう。 昨日清水寺に行った、天気はとても熱いね。日に焼けすぎたので、腕は今赤い。 側に花があるので、赤い清水寺はもっと美しそうだ。 木の色は艶やかだ。