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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:14:54+00:00 2026-05-17T00:14:54+00:00

I am using the iPhone toolchain on Linux and so I have no Interface

  • 0

I am using the iPhone toolchain on Linux and so I have no Interface Builder. So how could I layout my view in my ViewController subclass? For example, I want a UITextView in the middle of the screen? Should I do this in the loadView or viewDidLoad. Do I also have to set the view for the ViewController subclass to itself?

  • 1 1 Answer
  • 1 View
  • 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-17T00:14:55+00:00Added an answer on May 17, 2026 at 12:14 am

    It is not an easy job to layout all the view using code. Here are some code:

    UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake (100, 100, 100, 100)];
    [self.view addSubview:textView];
    

    The frame is the place (the first and second argument is x and y coordinator) and the size (the third and fourth argument is width and height of the text view).

    Using this way, you can add any view into your class. Some of the view is built in and you don’t have to draw yourself, some of them is not, and you need to subclass UIView and override drawRect.

    You should do this in viewDidLoad when your main view controller is finished loading

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

Sidebar

Related Questions

I am using Open Source toolchain to compile my iPhone apps. So I have
using Iphone sdk 3.1.2 I have a UITextView control with vertical and horizontal scrolling
I'm using iphone sdk 3.1.2. I have 3 root view controllers each on separate
using iphone SDK 4.0. I have some UIButtons in a viewcontroller which when touched
I am using the IPhone's Accelerometer to make a object move. I want to
using iphone sdk 4.0 I want to remove the function name stuff from this
I am using iPhone SDK 3.1.3. I have a UITableViewController which gets data from
For my application I want to calculate my car/bike speed using iphone. How can
I'm using iPhone SDK and need of assistance. I have the following array of
I have tried the launch the settings of iPhone in my application using 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.