You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 18, 2025. It is now read-only.
母畫面:
xib 裡有個加了四邊constraint跟superview一樣大的STSSDKPlayerView (ib outlet),STSSDKPlayerView的superview為xib本身的view。
子畫面:在獨立的pip view controller中,加入由母畫面傳入的STSSDKPlayerView,給定大小位置(無constraint)
pan gesture:改變子畫面的center
display function:
{
....
self.pipView = view; // view's class is STSSDKPlayerView
//self.pipView.translatesAutoresizingMaskIntoConstraints = YES;
self.pipView.frame = [self pipFrameAtCorner:corner marginX:marginX marginY:marginY size:size];
}
pan gesture handler:
{
... compute new center ...
self.pipView.center = $new_center;
}
Issue:
無法指定子畫面位置與大小
測試: