slide - Can you anchor a view in place? (or is there some other work around to preventing a view from being shoved by a UIDateTimePicker?) (iOS) -
i added uidatepicker
programmatically, , set inputview
, inputaccessoryview
of uitextfield
date picker pops instead of keyboard when selecting text field.
the date picker pops up; however, problem is, shoves rest of view up, hiding uitextfield
being changed (since text field @ top of screen).
is there way prevent unwanted shoving occurring? or somehow anchor view in place in textfielddidbeginediting
method , unanchor view in textfielddidendediting
method? (note: tried setting view top of screen in textfielddidbeginediting
method doing self.tableview.contentoffset = cgpointmake(0, 0);
did not anything, , think because occurs before view shoved up)
if helps, delegate view uitableviewcontroller
. aware uitableviewcontroller
s pretty restrictive, , maybe why acting up; wasn't letting me use static cells unless put them in uitableviewcontroller
had choose default.
thanks! appreciated!
i figured out, should set uidatepicker
inputview
property of uitextfield
not inputaccessoryview
property of uitextfield
Comments
Post a Comment