1
我想一个视图添加到ActionSheet,但尺寸都搞砸了。添加的UIView到UIActionSheet尺寸不对
视图显示出来,但是当它不正确的大小显示。 我的身高411
作出的查看宽度300当我使用它的代码添加到actionsheet:
ContactCardViewController* myController = [[ContactCardViewController alloc] initWithNibAndEmployeeInfo:[self.request objectForKey:@"Requestor"]];
[self.actionSheet showInView:self.view];
[self.actionSheet setBounds:[myController.view frame]];
[self.actionSheet addSubview:myController.view];
只有大约一半的视图显示,右边稍微切断,似乎就像它与超视图大小几乎一样,它应该小得多。
我该如何解决这个问题?
谢谢!