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 8160613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:18:06+00:00 2026-06-06T18:18:06+00:00

I am working on a children’s book app and would like to dynamically populate

  • 0

I am working on a children’s book app and would like to dynamically populate speech bubble(s) for character dialogues on every scene. I got the animation and dialogue working and below is the code for that. I would have multiple pages in my book, every page would have multiple characters and every character would have multiple dialogues. What is the best way to make this a generic approach so I can use it repeatedly. Can I store the dialogues in TEXT/XML file and read and display them dynamically based on following parameters: Page number, Character number, dialogue number?

UIImage *bubble = [[UIImage imageNamed:@"BubbleLefthand.png"] 
                               resizableImageWithCapInsets:UIEdgeInsetsMake(15, 21, 15, 21)];
            UIImageView *imgView = [[[UIImageView alloc] initWithImage:bubble] autorelease];
            imgView.frame = CGRectMake(250, 350, 0, 0);
            UILabel  *xlabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 0, 0)];
            xlabel.text = @"This is a dialogue text!!!";

            [imgView addSubview:xlabel];
            [self.view addSubview:imgView];
            [UIView animateWithDuration:0.5
                             animations:^(void) {
                                 imgView.frame = CGRectMake(250, 350, 300, -40);
                                 xlabel.frame = CGRectMake(30, 10, 200, 20);
                             } completion:^(BOOL finished) {
                                 STLog(@"ChildrenBookViewController ==> SPPECH BUBBLE ANIMATION COMPLETE. Switch Case: %d", pageNum);
                             }];

Currently my dialogue shows like attach screenshot.
enter image description here

  • 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-06-06T18:18:07+00:00Added an answer on June 6, 2026 at 6:18 pm

    As for organizing the dialogs, organizing by page at the highest level seems fine. You can define background image as an attribute of the page.

    At one level below page, I think it is better to define “event”. Each event correspond to an action from user, or you may even define an event that automatically follows the previous event.

    In each event, you can have different types: show dialogue, hide dialogue, control the background music, control sound effect.

    • For show/hide dialogue event, dialogue id should be defined (the dialogue can be placed directly here or collected in a separate file), plus the direction of the bubble, and possibly the dimensions. Character id may not may not be useful, unless you use it to change the appearance of the text bubble or font.

    • For controlling background music, you can have an attribute specifying whether to play or to stop the currently playing music. The background music to play can also be specified as child node.

    • For sound effect, you can specify the track you want to play.

    This is some ideas I thought up as I think what features the app can have. I can give more idea if you give a bit more details.


    Side issue about display: Make sure the png file has transparent outside edges, and set the UIImageView background color to [UIColor clearColor].

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

Sidebar

Related Questions

I am working on a children's book app and would like to dynamically populate
I am working on a Children's book app for iPad and my app opens
I am working on an interactive children's book for the iPad that has a
Working jQuery, what I'd like to perform is something similar to the following: $('sometag').children().wrap('<div></div>');
I'm working on a singleton Applicatiobar, so I can access it from every class
I am working with a List<T> which contains both parent and children objects. In
I working my way through a C++ and Operating Systems book and I've come
I am working on a project that has a div with 32 children. I
I am working on a fairly simple demo app. Three input dropdown boxes are
I'm working on a sound recorder app for Windows 8, and have noticed that

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.