如何在UIAlertView中显示UIStepper?还建议我任何其他替代方案,以显示弹出窗口中的UIStepper。
发布于 2013-02-14 14:47:49
在UIAlertView中插入视图的更好方法是将它们添加为子视图
请尝试以下操作
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];发布于 2013-02-14 14:45:58
试试这个..。希望能对你有所帮助
UIStepper *stepper = [[UIStepper alloc] initWithFrame:CGRectMake(120, 20, 0, 0)];
UIAlertView *alert =[[UIAlertView alloc]init];// you can set your frame according to ypur requirment
[alert addSubview:stepper];
[alert show];https://stackoverflow.com/questions/14869020
复制相似问题