title: multi UIView subclass create in loop
body: <p>i create a UIView subclass that name is "GameCard"</p>
  
  <p>and i also create xib file. and added one UIView. </p>
  
  <p>so i want add each GameCard class to ivew in loopping</p>
  
  <p>so I wrote this codes.</p>
  
  <pre><code>- (void)viewDidLoad {
      NSArray *nibViews =  [[NSBundle mainBundle] loadNibNamed:@"GameCard" owner:self options:nil];
      GameCard *aGameCard = [nibViews objectAtIndex:0];
      for (int i = 0; i &lt; [gameWordData1 count]; i++) {
          int x = i / 3;
          int y = i % 3;
          GameCard *bGameCard = [aGameCard copy];
          bGameCard.frame = CGRectMake((10 + y * 100), (x * 70), 100, 70);
          [self.view addSubview:bGameCard];
      }
  }
  </code></pre>
  
  <p>so I saw just one GameCard class in view</p>
  
  <p>so I try this code</p>
  
  <pre><code>- (void)viewDidLoad {
  for (int i = 0; i &lt; [gameWordData1 count]; i++) {
      int x = i / 3;
      int y = i % 3;
      CGRect rect = CGRectMake((10 + y * 100), (x * 70), 100, 70);
      GameCard *aGameCard = [[GameCard alloc] initWithFrame:rect];
      [self.view addSubview:aGameCard];
      NSLog(@"%i", [[self.view subviews] count]);
  }
  }
  </code></pre>
  
  <p>I saw anythins in view. but it seems GameCard class is created.</p>
  
  <p>what's wrong my code.</p>
  
  <p>sorry about my english :)</p>