Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6019249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:23:36+00:00 2026-05-23T03:23:36+00:00

Working on an experiment on the iPad. Tried some variations on how to do

  • 0

Working on an experiment on the iPad. Tried some variations on how to do this, but I can’t seem to get it to work correctly…

I tap a UIButton on my MainViewController and a TextEntryModule is added to the view. TextEntryModule is its own class (for multiple instantiation) and it contains a UITextView called TextEntry (this all works at the moment).

I tap on the TextEntry UITextView and it brings up the keyboard and another view (located in MainViewController) with a UITextView called TextPreview. (this also works at the moment).

The part I’m having trouble with is synching the two UITextViews. The idea being that when I type into TextEntry, the text in TextPreview will also be updated.

Outlets are linked properly for the text fields, but I think I’m missing something “obvious”:

TextEntryModule *tm = (AnnotationModule *)currentModule;
TextPreview.text = tm.TextEntry.text

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:23:37+00:00Added an answer on May 23, 2026 at 3:23 am

    UITextView: delegate.

    - (void)textViewDidChange:(UITextView *)textView
    

    Then assign it the value of the other textview in this method.

    Edit

    @interface MainViewController <UITextViewDelegate> {
       ...
    }
    ...
    @end
    

    Then you implement this method in the implementation file of MainViewController

    @implementation MainViewController
    
    //More code
    
    - (void)textViewDidChange:(UITextView *)textView {
        TextEntryModule *tm = (AnnotationModule *)currentModule;
        TextPreview.text = tm.TextEntry.text
    }
    @end
    

    Then you will have to set the TextEntryModule object’s delegate to self since the controller now conform to the protocol and can “act” upon this notification.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a pretty simple CSS experiment on jsfiddle and I can't seem
If anyone can get this guy's small bit of code working on their machine,
I'm learning Rx and am working through some of the semantics. As an experiment,
I'll be working on a cryptographic app for iPad soon. Along to some other
I've recently found swingx and wanted to experiment with JXCollapsiblePane. But i cant get
Can anyone suggest some learning materials to accomplish my question? I'm working with the
I’m working on a experiment regarding to a course I’m taking about tuning DB2.
Hoi. I am working on an experiment allowing users to use 1% of my
Working on a somewhat complex page for configuring customers at work. The setup is
Working with python interactively, it's sometimes necessary to display a result which is some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.