UIKitのデバッグに使えるものを集めました。
- (void)addSquare:(CGPoint) origin { UIView *view = [[[UIView alloc]initWithFrame:CGRectMake(origin.x, origin.y, 10, 10)]autorelease]; [view setBackgroundColor:[UIColor redColor]]; [self.view addSubview:view]; }