views:

670

answers:

1

I add a view dynamically, but when it appears on the form, it's in the upper left hand corner.

Where do I set the X and Y of the new subview?

+4  A: 

You should set the frame property:

myView.frame = CGRectMake(10,10,200,100);

This will position the view at location (10,10), with a size of 200x100

Philippe Leybaert