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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:51:00+00:00 2026-05-28T16:51:00+00:00

-(IBAction)printDisplay:(id)sender{ CGRect rect = CGRectMake(0.0,44.0,self.view.frame.size.width,self.view.frame.size.height); NSValue *rectObj = [NSValue valueWithCGRect:rect]; CGRect rectRestored = [rectObj

  • 0
-(IBAction)printDisplay:(id)sender{

     CGRect rect = CGRectMake(0.0,44.0,self.view.frame.size.width,self.view.frame.size.height);

    NSValue *rectObj = [NSValue valueWithCGRect:rect];

    

    CGRect rectRestored = [rectObj CGRectValue];

    

    UIGraphicsBeginImageContext(CGSizeMake(rectRestored.size.width, rectRestored.size.height-44));

    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];

    viewImage = UIGraphicsGetImageFromCurrentImageContext();

    UIGraphicsEndImageContext();

    UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);

}

This is code for capture the image from the current screen.

Problem is that I don’t want to get the UIToolBar for the capture into the screen for that what to do. My application screenshot looks like this :

enter image description here

and after I take a screenshot of the image :

enter image description here

In short I want the remove the UIToolBar when the snap of the image.
Thanx in advance for spend your valuable time.

@samuel

  • 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-28T16:51:01+00:00Added an answer on May 28, 2026 at 4:51 pm

    if the image frame is starting from below the Toolbar, you can just set the rect starting from (0,44). If the image frame is starting from beneath the toolbar from (0.0) just set the toolbarObject.hidden = YES; before taking the screenshot through graphicsContext and reset it back to toolbarObject.hidden = NO; afterwards.

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

Sidebar

Related Questions

-(ibaction)sometouched:(id)sender { [UIView beginAnimations:@first one context:nil]; [UIView setAnimationDuration:1.0]; [myview setFrame:CGRectMake(0,y,width.height.); [UIView commitAnimations]; [UIView beginAnimations:@second
-(IBAction)textFieldDoneEditing:(id) sender { [textInfo resignFirstResponder]; [self.navigationController setNavigationBarHidden:NO animated:YES]; [self.view addSubview:(UITableViewController*)informationTableView];// don't Work } expected
-(IBAction)bigger { must.bounds.size = CGSizeMake(must.bounds.size.width +5.0 , must.bounds.size.height +5.0); } This is the code
-(IBAction)registerUpdate:(id)sender { HTTPRequest* request = [[HTTPRequest alloc] initWithUrl:@http://www.yahoo.com delegate:self]; [request doRequest]; } The HTTPRequest
-(IBAction)_clickautoscroll:(id)sender { NSTimer *autoscrollTimer; if (autoscrollTimer == nil) { autoscrollTimer = [NSTimer scheduledTimerWithTimeInterval:(55.0/1000.0) target:self
-(IBAction)selectPressed:(id)sender { UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
Here is my code: -(IBAction)encryptText:(id)sender { key = self.tvKey.text; CCCryptorStatus status = kCCSuccess; algorithm
-(IBAction)actionPrevious:(id)sender{ [self startact]; pageNumber = pageNumber - 1; if (pageNumber>0) { NSString *str_Img =[array_Image
-(IBAction)customizeYourGameButtonClicked:(id)sender { [self playHumanHitSound]; self.customizeYourGameViewController = [[CustomizeYourGameViewController alloc] initWithNibName:@CustomizeYourGameViewController bundle:nil]; [self.navigationController pushViewController:customizeYourGameViewController animated:YES]; [customizeYourGameViewController
I have this code : -(IBAction)OkButtonPressed:(id)sender{ NSLog(@BTN OK); RecherchePartenaireTableView *recherchePartenaireTableView=[[RecherchePartenaireTableView alloc]init]; recherchePartenaireTableView.mytext=textFieldCode.text; [self.navigationController popViewControllerAnimated:YES];

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.