问题
Good Day!
i want to add a subview in another view in iphone. and i want that child view to be of size which i want like if i want to change its height/width i can. Can somebody please suggest me something or help me out in this regard.
Thanks in advance
回答1:
you can do it by
UIView *newView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 100, 100)] ;
[self.view addSubview:newView];
来源:https://stackoverflow.com/questions/2620681/integrate-a-view-into-another-view-in-iphone