We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
母畫面: 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];
[self.view addSubview:self.pipView];
}
pan gesture handler: { ... compute new center ... self.pipView.center = $new_center; }
Issue: 無法指定子畫面位置與大小
測試:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
母畫面:
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:
無法指定子畫面位置與大小
測試:
The text was updated successfully, but these errors were encountered: