perkinss / Beachcomber

The ONC beachcomber app
1 stars 1 forks source link

PhotoDetailViewController scrolls when picker 'done' pressed #21

Closed jrproctor closed 12 years ago

jrproctor commented 12 years ago

The photo detail view, which allows the user to choose a category and composition, is presented inside a UIScrollView. When the 'done' button from the category or composition picker is pressed, the scroll view rapidly scrolls downward for no apparent reason. This does not occur if the cancel button is pressed.

jrproctor commented 12 years ago

This seems to occur because the text string of the text field is changed when the user pressed the 'done' button. The UITextField automatically calls the scrollToRectVisible method to move the scroll view such that the text field is visible. I think the solution is to move the text field to be visible as soon as the uipickerview appears.

jrproctor commented 12 years ago

This issue is resolved. Disabled scrolling when the text value is set.