简体   繁体   中英

UITextView showing text in Modal View

How can I show new text in UITextView in modal? So, here is the text, and I have 2 views, main and modal. I need to display text, which was set in main view, in modal. The TextView in modal was created.

textView.text = @"test";
[self.view addSubview:textView];

It's not an idea, cause it don't display text in modal :(

Normally I would have a uiviewcontroller subclass with the text view in it, the present that vc modally. Then the initial text string is a property of that vc. If this does not work for you, write a small demo app and post it to DropBox.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM