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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:16:41+00:00 2026-05-27T15:16:41+00:00

pls help me to understand the conception of UiView and UIViewController, i know that

  • 0

pls help me to understand the conception of UiView and UIViewController, i know that it works like mvc pattern, and as i understand UIView is a visual representation of View and controller is responsible for this view right? and when we create an instance of viewcontroller with initwithnibname we programatically attach some view to some controller , in other words we say the controller that he is responsible for drawing this view yes?

if we do not init it with nib nae, does it find the nib automatically or not?

this attachment also possible through Interface builder , am i right?

but what about presentModalViewController function? he get the viewcontroller parameter and display the view or i don’t understand the meaning of it ? and also is it possible to make a view without xib file, only in viewcontroller and after show it ?

  • 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-27T15:16:42+00:00Added an answer on May 27, 2026 at 3:16 pm

    as i understand UIView is a visual representation of View and controller is responsible for
    this view right?

    A single view controller is generally responsible for an entire hierarchy of views. A view controller manages a “screenful,” or at least an area, of related content.

    and when we create an instance of viewcontroller with initwithnibname we programatically
    attach some view to some controller , in other words we say the controller that he is
    responsible for drawing this view yes?

    No — a view should know how to draw itself. A view controller might tell the view what to draw, but the view needs to know how to render that into the current graphics context.

    if we do not init it with nib nae, does it find the nib automatically or not?

    It can. If you pass nil for the nib name and bundle, UIViewController will try to find a nib matching the name of the view controller’s class. You can, however, override -loadView to create your own views programmatically if you prefer to do that.

    but what about presentModalViewController function? he get the viewcontroller parameter
    and display the view or i don’t understand the meaning of it ?

    A view controller presented modally is still responsible for its view hierarchy. -presentModalViewController: really deals with the relationship between view controllers — how the view controller’s view is moved onto the screen, and what happens when it’s done.

    and also is it possible to make a view without xib file, only in
    viewcontroller and after show it ?

    Yes, you can certainly do that if you want to. Every view has an -initWithFrame: initializer that you can use to initialize a view, although some views provide other options. For example, UIButton has a +buttonWithType: method that you can use to create a button.

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

Sidebar

Related Questions

I am trying to create a slider like this example. pls anyone help me.
can't understand why this image resizing not working pls help //updating article function updateArticle(){
I am very confused about spring controllers, pls help me. i want to know
I don't understand the concept of getter and setter methods in PHP, pls help
When i select the row , i get the crash like below ..pls help
pls help me how to create a .htaccess file as index.php?regional=aaa domain.com/aaa/ list.php?regional=aaa&ctg=bbb&orderby=ccc&page=123 domain.com/list/aaa/bbb/ccc/123/
This code shows syntax error in the parameter declaration.. Pls help me to solve
i'm new to xslt pls provide the xslt that compare two node based on
I want to create a XML file in csharp like the below format pls
I have a question that can I use AS400ConnectionPool in Spring if then pls

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.