草庐IT

showUserInfoVC

全部标签

swift - 调用函数时无法推断通用参数 'T'

我有一个功能:staticfunccreate(userId:Int,streamId:Int,isPushStream:Bool=false,delegateToControllercontroller:T?=nil)->ShowUserInfoVCwhereT:UIViewController,T:ShowUserInfoVCDelegate{letshowUserInfoVC=ShowUserInfoVC()showUserInfoVC.modalTransitionStyle=.crossDissolveshowUserInfoVC.modalPresentationStyle