Passing variables to different view controllers

后端 未结 5 792
有刺的猬
有刺的猬 2021-01-14 22:01

I\'ve searched and searched but nothing has really worked.

I\'m trying to set a textvalue from a text box, into a string or whatever, so that I can call it up later

5条回答
  •  情歌与酒
    2021-01-14 22:59

    Your question is a bit vague. Could you give any more specifics. It sounds like you want to know:

    1. How to get values from controls. In the case of a text field there should be a text property you can get the value from.

    2. How to share values between controllers. Not sure exactly what you mean. The controller usually orchestrates the sharing of values between different views by using a model as the authoritative version of the data.

    Again, if you can be any more specific we may be able to help more

提交回复
热议问题