我想在单击按钮时创建uiview的自定义子类(SubCustomView),并在SubCustomView上添加uitextview类作为subview。当我启动uitextview时,我使用initWithFrame:textContainer:方法。当我使用这种方法时,项目崩溃了。当我使用initWithFrame:方法时,项目没有崩溃。我正在使用以下代码:textContainer1=[[NSTextContaineralloc]initWithSize:CGSizeMake(2,CGFLOAT_MAX)];stringTextView=[[UITextViewalloc]ini