ios - Present a UIPickerView modally in a UITableViewController -
all wan't display uipickerview
@ bottom of uitableviewcontroller
.
the problem can't add picker subview, since it's uitableview
. badum tss. uiactionsheet
hack won't work since ios 7 don't have more ideas.
did else had same issue , can me figure out?
assuming trying add actual bottom of tableview rather bottom of screen, try adding subview footerview.
//create whatever kind of pickerview here. uiview *footerview = [[uiview alloc] initwithframe:cgrectmake(0, 0, self.tableview.frame.size.width, self.pickerview.frame.size.height)]; [footerview addsubview:self.pickerview]; self.tableview.tablefooterview = footerview;
if trying add action sheet that's not working on ios 7, answer creating own actionsheet uiview contains pickerview , animates in , out when need to.
Comments
Post a Comment