How do you set the tab order in iOS?

前端 未结 8 859
星月不相逢
星月不相逢 2020-12-08 18:45

Is there a way (either in IB or code) to set the tab order between text fields in a view?

Note that I\'m not talking about the next form field after the return (or

8条回答
  •  眼角桃花
    2020-12-08 19:23

    You can do this by setting the tag for each textfield and handling this in the textfieldShouldReturn method.

    See this blogpost about it: http://iphoneincubator.com/blog/windows-views/how-to-create-a-data-entry-screen

提交回复
热议问题