-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
presentedViewControllerFrame.size = presentedViewContentSize;
if(self.pType == TLPopTypeActionSheet){
if([[self class] isIPhoneX]){/////这个函数已经过时了,应该使用安全区域去实现吧?
presentedViewControllerFrame.size.height += 34;
}
presentedViewControllerFrame.origin.y = CGRectGetMaxY(containerViewBounds) - presentedViewControllerFrame.size.height;
}else if(self.pType == TLPopTypeAlert || self.pType == TLPopTypeAlert2){
// 垂直居中
presentedViewControllerFrame.origin.y = (CGRectGetMaxY(containerViewBounds) - presentedViewContentSize.height) * 0.5;
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels