How to addSubview with a position?

后端 未结 4 706
长发绾君心
长发绾君心 2020-12-23 11:45

I have something like this:

myViewController = [[MyViewController alloc] initWithNibName:@\"MyView\" bundle:nil];
[mainCanvas addSubview: myViewController.vi         


        
4条回答
  •  长情又很酷
    2020-12-23 12:32

    In addition to setting the frame property, you can also set the center property of a view.

提交回复
热议问题