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

  • Home
  • SEARCH
  • 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 6215119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T06:59:49+00:00 2026-05-24T06:59:49+00:00

I’m trying to build my first iPhone app, a Berlin museum guide, and I’m

  • 0

I’m trying to build my first iPhone app, a Berlin museum guide, and I’m having a little trouble figuring out how to design a specific view. I did mockups of all my views with Photoshop before, but now actually making it happen in Xcode is something else, of course 🙂

So, here’s what I want:

[I was gonna post an image here but since I’m new I don’t have enough reputation to post images.]

Find the image here:
http://img9.uploadhouse.com/fileuploads/13445/13445099d5adea77b02fe1d76755da6b81c92634.png

I want a white box with several text parts in it. A large heading, a smaller heading and a longer text that is placed next to an image. The text that goes in there is provided by my core data model and changes depending on what exhibition the user is looking at.

First question: Is there such thing as a “white box with rounded corners object” in which I can place text, images etc. or would I have to import this as a custom image? In that case, I’d have a problem if I want the box to change it’s size, as with simply scaling the image the round corners would become distorted.. I’m assuming a CSS-stye approach with a top- and bottom-image and doing the middle part with a repeat-y property or something like that won’t work in objective-c, right?

Second question: Does anyone have good advice on how to approach the text expand thing in general? I want the description text to initially be just a teaser so it won’t take up the whole screen. If the user wants to keep reading, on tapping the “more” button the box should expand and display the entire text.
So much for the theory.. I’m a bit clueless about how to get this done and am hoping that somebody might have some good input on that.

Thanks a lot for taking the time to help a newbie 🙂

  • 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-24T06:59:51+00:00Added an answer on May 24, 2026 at 6:59 am

    I would not use a b/g image since there are going to be problems with vertical expansion, as you noted yourself. I would rather use a regular UIView and following method to make its corners round.

    #import <QuartzCore/QuartzCore.h>
    
    view.layer.cornerRadius = 5; 
    

    As for the text expansion. I would not try to make image wrapping text as it is hard.
    For automatica UITextView adjustment you can do the following.

    • set UITextView frame smaller.
    • create a button “more” that will change the frame of the UITextView and animate it

    example:

    #define MOVE_ANIMATION_DURATION_SECONDS 0.5
    
    -(void)maximize:(BOOL)animated{
        if(animated){
            [UIView beginAnimations:nil context:nil];
            [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
            [UIView setAnimationDuration:MOVE_ANIMATION_DURATION_SECONDS];
            [UIView setAnimationDelegate:self];
    
            [self setMaximizedViewState];
    
            [UIView commitAnimations];
        }else
            [self setMaximizedViewState];
    
    }
    
    -(void)minimize:(BOOL)animated{
        if(animated){
            [UIView beginAnimations:nil context:nil];
            [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
            [UIView setAnimationDuration:MOVE_ANIMATION_DURATION_SECONDS];
            [UIView setAnimationDelegate:self];
    
            [self setMinimizedViewState];
    
            [UIView commitAnimations];
        }else
            [self setMinimizedViewState];
    
    }
    
    -(void)setMinimizedViewState{
        isMinimized = YES;
    
        //Adjust the UITextView's frame and other properties
    }
    
    -(void)setMaximizedViewState{
        isMinimized = NO;
    
        //Adjust the UITextView's frame and other properties
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I am trying to loop through a bunch of documents I have to put
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm making a simple page using Google Maps API 3. My first. One marker
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
Seemingly simple, but I cannot find anything relevant on the web. What is the

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.