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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:13:24+00:00 2026-05-23T09:13:24+00:00

I am creating a messaging app for iPhone. I want the user to have

  • 0

I am creating a messaging app for iPhone.
I want the user to have the capability of entering a newline while pressing return.
But I am having trouble putting a UITextview inside the toolbar item.
I have seen the same with UITextView.
When return key is pressed i want to get the new line in UITextField.Is this possible.enter image description here

Please help
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-23T09:13:25+00:00Added an answer on May 23, 2026 at 9:13 am

    You can’t add it using IB but you can do it programmatically. You will need to set its contentInset so that the text content is not pushed up on editing because the content will become invisible due to the text view’s constrained size. I have added that in the example code below.

    Example Code

    UITextView * textView = [[[UITextView alloc] initWithFrame:CGRectMake(0, 0, 100, 32)] autorelease];
    textView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
    UIBarButtonItem * barItem = [[[UIBarButtonItem alloc] initWithCustomView:textView] autorelease];
    
    self.toolbar.items = [NSArray arrayWithObject:barItem];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a messaging web app in ASP.NET and are having some problems when
I'm creating a simple messaging app, in which the user can send either an
I am creating a messaging system but the problem I face is that when
I am creating User messaging functionality from scratch, and am attempting to figure out
I'm creating a messaging system (using PHP) and want to assign an ID number
I am very new to WCF and SOAP messaging but I have managed to
I have been creating a web app and am looking to expand. In my
Imagine I have a C# app sitting on a server somewhere that is creating
I want to create a Mobile messaging service, but I don't know which is
I'm creating interfaces and abstract classes that represent a messaging framework for short text-based

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.