緑色の四角形がありますが、アプリを実行しても表示されません。ここに私のコードがあります:
- (void) makeBlockg {
x = arc4random()%(320) + 1;
CGRect block = CGRectMake(x, 0, 100, 70);
greenblock.frame = block;
greenblock.self.backgroundColor = [UIColor greenColor];
[self.view addSubview:greenblock];
}