开发者

how to send the data from a TextField/TextView to another view?

开发者 https://www.devze.com 2023-04-06 20:40 出处:网络
I have 3 TextFields and 1 TextView in my first view (proj1) now i want to show the data from these Fields to the next view on the click of a button-\"Done!\". How do i do this?

I have 3 TextFields and 1 TextView in my first view (proj1) now i want to show the data from these Fields to the next view on the click of a button-"Done!". How do i do this? I know its a very basic question, but i've just started off with iphone app dev, any help would be r开发者_运维问答eally helpfull.


Take a look at this: http://www.iphonedevsdk.com/forum/iphone-sdk-development/54859-sharing-data-between-view-controllers-other-objects.html


You can get the value of a textfield with the text property and set the value of the textview with setText

[textview setText:[textfield text]]

Posting from my android, hope formatting is fine.


It's definitely a big answer. Instead let me post a link - How to share data i.e. pass data between different View Controllers and other Objects

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号