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

The Archive Base Latest Questions

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

I am trying to figure out how to take a screen capture feed and

  • 0

I am trying to figure out how to take a screen capture feed and send it to an iOS device (an iPad in this case) and have the images displayed on the screen, updating as each new image is sent while clearing the old one from memory.

I am just starting with the basics, so I am trying to get the simulator to load a screenshot from the desktop and display it on the screen, and then change the image as I take a new screenshot, and either delete the old one so I can rename the new screenshot to carry the same name or to simply overwrite the old one (thus the reference should still point correctly in the programming code).

I tried using a button that reloaded my UIImageView via:

- (IBAction)buttonPressed:(id)sender
{
    [UIImageView setImage:ScreenCapture];
}

where ScreenCapture is the name of the UIImageView, with the hope that it would reload the existing referenced image.png file, but clicking the button simply exits that program within the simulator and goes back to the simulator’s home screen.

Am I using the wrong object when trying to get this done via UIImageView? Is their an existing program/tutorial on this?

I would try to reverse engineer VNC for the iPhone, but both the copyright issues and the amount of advanced programming features are well beyond me.

Once I can get something working through Xcode, I am also planning on trying to implement the same thing via MonoTouch to see which language is easier to use and more beginner friendly.

Thank you for the help,
~Chris

header:

#import <UIKit/UIKit.h>

@interface Screen_Capture_3ViewController : UIViewController {

    IBOutlet UIImageView *ScreenCapture;
    IBOutlet UIBarButtonItem *Update;
}

@property (nonatomic, retain) IBOutlet UIImageView *ScreenCapture;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *Update;

- (IBAction)buttonPressed:(id)sender;

@end

.m:

#import "Screen_Capture_3ViewController.h"

@implementation Screen_Capture_3ViewController

@synthesize ScreenCapture;
@synthesize Update;

- (IBAction)buttonPressed:(id)sender
{
    [UIImageView setImage:ScreenCapture];
}

Everything else remains at the default when selecting “View-based Application”, and I connected the ScreenCapture to the UIImageView in Interface builder, as well as Update and buttonPressed to the UIBarButtonItem in Interface Builder.

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

    setImage is an instance method, not a class method, so you can’t send it directly to UIImageView (nor would it really mean much).

    Keep your current code from your question for the header (but only the property should be marked as IBOutlet):

    @interface Screen_Capture_3ViewController : UIViewController {
    
    UIImageView *ScreenCapture;
    UIBarButtonItem *Update;
    
    }
    
    @property (nonatomic, retain) IBOutlet UIImageView *ScreenCapture;
    @property (nonatomic, retain) IBOutlet UIBarButtonItem *Update;
    
    - (IBAction)buttonPressed:(id)sender;
    
    @end
    

    In your implementation, your event handler should be something like this:

    - (IBAction)buttonPressed:(id)sender {
        UIImage* newImage = [UIImage imageWithContentsOfFile:@"pathToImage.png"];
        [ScreenCapture setImage:newImage];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Really struggling to figure this out. Just trying to take in data from php
trying to figure out why this is happening - I have an input text
I'm trying to figure out how have something like Enter an expression: take in
I'm trying to figure out a way to take a Ruby array and create
Trying to figure out how I can do this properly. The print_r looks like
I am trying to figure out how to take an image and use Graphics2D
So I'm trying to figure out how to take entries from the user in
I am trying to figure out what to take into consideration before porting my
I am trying to figure out how to use jquery to take an image
I've been trying to figure out how you'd take a mesh generated in a

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.