ios - 自定义 UIView,如 UIPopoverController
<p><p>想了解<code>UIPopoverController</code> 风格的<code>UIView</code> 是如何创建的。下面是Storehouse iOS app 在iPhone 上运行的图片(苹果设计奖得主),你可以看到此外,该 View 看起来像 <code>UIPopoverController</code> ,非常感谢任何帮助。</p>
<p> <img src="/image/qp4qg.jpg" alt="enter image description here"/> </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>您可以处理自己的自定义 View 查看此 <a href="https://stackoverflow.com/questions/30069028/how-to-place-custom-view-in-ios-over-another-view" rel="noreferrer noopener nofollow">How to Place custom view in IOS over another view</a> </p>
<p>你可以用这个</p>
<pre><code>- (IBAction)ContinueToPayment:(id)sender {
PayByVC *Newpage = [ initWithNibName:@"PayByVC" bundle:nil];
Newpage.checkOutInfoDict=checkOutDict;
Newpage.modalPresentationStyle = UIModalPresentationOverCurrentContext;
Newpage.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
Newpage.view.backgroundColor = [ colorWithAlphaComponent:.4];
Newpage.delegate = self;
;
}
</code></pre></p>
<p style="font-size: 20px;">关于ios - 自定义 UIView,如 UIPopoverController,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/30296318/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/30296318/
</a>
</p>
页:
[1]