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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:14:03+00:00 2026-06-10T23:14:03+00:00

I create new viewcontroller class with xib then created uiview inherited class and in

  • 0

I create new viewcontroller class with xib then created uiview inherited class and in xib file custom class I wrote the uiview inherited class name(PaintView).

I am trying to implement a simple drawing feature in my app, I created a simple drawing code which paints on uiview using touchbegain, thouchmoves, drawrect methods in PaintView class.

Till here its all working fine now I want to pop a model of this view, but I want it to display half of the screen, I resize it in interface builder but it is still showing on full screen.

Other posts says create a transparent view add contents at bottom half thats how you will get half model view, but this is not a solution for my problem.

How to properly pop model view but only half of the screen.

  • 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-10T23:14:05+00:00Added an answer on June 10, 2026 at 11:14 pm

    Simple, don’t present it modally.

    UIViewController *controller = [[UIViewController alloc] initWithNibName:@"myXib" bundle:[NSBundle mainBundle]];
    [controller.view setFrame:CGRectMake(0, 480, 320, 320)];
    [self.view addSubview:controller.view];
    [UIView animateWithDuration:0.5 animations:^{
        [controller.view setTransform:CGAffineTransformMakeTranslation(0, -320)];
    }];
    

    To change the color’s I recommend you store the integer values of your color’s hues into an array, that way you can stably assign the hue from the integer value of some object in the array:

    arrayOfColors = [[NSArray alloc] initWithObjects:@"0.0", @"0.1", @"0.2", @"0.3", @"0.4", @"0.5", @"0.6", @"0.7", @"0.8", @"0.9", nil];
    
    
    
    [[UIColor colorWithHue:[[arrayOfColors objectAtIndex:someIndex]floatValue] saturation:1.0 brightness:1.0 alpha:1.0]setStroke];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created new Single View project in Xcode. In ViewController.xib I've added new custom
Im trying to create new file on D: drive with c/c++ I found this
When create the new objective-c class UIViewController file. I want to know which command/
I wanted to know if I have to create a new ViewController for each
I'm trying to create a second view controller and link it to a new
Code to create new form instance of a closed form using form name I
I am going create a new xib which is very similar to an existing
When I create Universal app in my project start, XCode automatically create ViewController class
1. Step: Create a new UIViewController: - Xcode -> New File... -> Cocoa Touch
If I create a New Project in xcode, then choose View-based Application, the delegate

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.