开发者

Using a slider in a UIAlertView?

开发者 https://www.devze.com 2023-01-28 11:11 出处:网络
is it possible to have a UISlider inside of a UIAlertView, and when the value of that UISlider changes so does text or a UIImage inside of the UIAlertView changes accordingly with the UIslider?

is it possible to have a UISlider inside of a UIAlertView, and when the value of that UISlider changes so does text or a UIImage inside of the UIAlertView changes accordingly with the UIslider?

Im trying to create a开发者_如何学Gon easy way to change one attribute of a specific core data object.

So in a UITableView, the user would select the object's whose attribute they wish to change. A UIAlertView would pop up and the user would change the value of a UISlider to change the attribute of that object. is that possible?


Yes it's possible. You can add views to an UIAlertView through its addSubview: method. To increase the height of the alertView I personally use empty lines as its message-text. For instance: @" \n \n "

I believe there are other ways to alter the size of an UIAlertView, but I don't know them.

0

精彩评论

暂无评论...
验证码 换一张
取 消