Home:ALL Converter>Add a UIPicker on a UIScroll View?

Add a UIPicker on a UIScroll View?

Ask Time:2011-09-07T23:45:49         Author:sillersam

Json Formatter

I designed an app with mainly uses UIPicker, but I don't have space to use more then 10 pickers.

Of course, all the pickers are connected to a UITextField. So if you press a TextField a Picker will show. I'm Trying to add a UIScrollView so I can add more TextField which when pressed shows a UIPicker.

Is it Possible? Can I view two views at the same time? I would really appreciate it, if someone can give me a hand.

Thank you

Author:sillersam,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/7336737/add-a-uipicker-on-a-uiscroll-view
Malcolm Box :

Yes you can have more than one view onscreen at a time. Simply make the UIPickerView as subview of the UIScrollView:\n\nUIScrollView* scroll = [[UIScrollView alloc] init];\nUIPickerView* picker = [[[UIPickerView alloc] init] autorelease];\n[scroll addSubView: picker];\n",
2011-09-07T16:04:20
yy