在Uialertview的Uistepper [英] Uistepper in Uialertview
本文介绍了在Uialertview的Uistepper的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在 UIAlertView
中显示 UIStepper
?还建议我在弹出窗口显示 UIStepper
的任何其他选择。
How can I show UIStepper
in UIAlertView
? Also suggest me any other alternative to show UIStepper
in pop-up.
推荐答案
在 UIAlertView
中插入视图的更好方法是将它们添加为子视图
A better way of inserting views in UIAlertView
would be to add them as a subview
尝试以下
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:nil message:@"\n\n" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil];
UIStepper* stepper = [[UIStepper alloc] init];
stepper.frame = CGRectMake(12.0, 5.0, 100, 10);
[alert addSubview:stepper];
[alert show];
这篇关于在Uialertview的Uistepper的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文