iphone - UIPickerView interactive area for tapping cut off in iOS 7 -


when make long picker multiple components, components near center react tap-to-select feature.

for example, if want pick next row under selected row, should able tap make animate selection area. feature still exists ios 7, area in uipicker accept tap small window, no larger 200px.

is there way expand tap-able area include entire uipickerview, time tap row becomes selection?

edit here code, it's pretty standard...

    - (void)pickerview:(uipickerview *)pickerview didselectrow:(nsinteger)row incomponent:(nsinteger)component{      nslog(@"picked %i %i" , component , row); }   - (nsinteger)numberofcomponentsinpickerview:(uipickerview *)pickerview {     return 4; }  - (nsinteger)pickerview:(uipickerview *)pickerview numberofrowsincomponent:(nsinteger)component {     return 15; }  - (nsstring *)pickerview:(uipickerview *)pickerview titleforrow:(nsinteger)row forcomponent:(nsinteger)component{     return @""; }  - (uiview *)pickerview:(uipickerview *)pickerview viewforrow:(nsinteger)row forcomponent:(nsinteger)component reusingview:(uiview *)view {     uilabel *pickerslabel;      pickerslabel =[[uilabel alloc] initwithframe:cgrectmake(0.0, 0.0, view.frame.size.width , view.frame.size.height )];     pickerslabel.text = [nsstring stringwithformat:@"thing %i" , row ];       pickerslabel.backgroundcolor = [uicolor clearcolor];      pickerslabel.backgroundcolor = [uicolor colorwithred:1/255.0 green:1/255.0 blue:2/255.0 alpha:0.05];      pickerslabel.opaque = no;     [view addsubview:pickerslabel];     return pickerslabel; } 

i've had massive problems uipickerviews in .xibs instead of storyboards in ios 7. i'm not sure if there's optimization going on behind scenes in storyboard or if straight-up bug, it's worth shot - i'm using picker view that's coming storyboard right , able tap on non-selected rows , scroll , become selected.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -