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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:11:23+00:00 2026-05-15T10:11:23+00:00

Or I should ask why is it so difficult for me? The answer is

  • 0

Or I should ask why is it so difficult for me? The answer is probably that I’m new to iPhone development and I’m trying to ditch my old methods and step into the new platform of the future. From start to finish, I have a few questions about this process…

  1. If I create a .png image, where does it go in my project’s directory (i.e. my computer’s hard drive)? Can I put it anywhere on my hard drive and Xcode will copy it in the right place when I load it into Xcode?
  2. Once it exists on my hard drive somewhere, how do I add it to my Xcode project? Can I just drag the file into any folder in the “Groups & Files” tree?
  3. Once I drag it into Xcode, what copy settings do I want to use in that copy file dialog box that pops up? Copy items into destination group’s folder checkbox? Reference Type? Recursively create groups for added folders?
  4. Once the .png image has properly been added to my project, what’s the easiest way to get it into an CGImageRef? The documentation shows an example using the CGImageCreateWithPNGDataProvider helper method, but says it’s not supported by the iOS SDK. I’d like to use the CGImageRef for repeatedly drawing the image to a bitmap context.

Thanks so much in advance and I apologize for the lengthy question, I’m just surprised it’s such a convoluted process compared to some other platforms.

  • 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-15T10:11:24+00:00Added an answer on May 15, 2026 at 10:11 am

    If you load into UIImage, you can get a CGImageReg:

        UIImage *image = [UIImage imageNamed:@"image.png"];
    CGImageRef imageRef = [image CGImage];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to figure this out for hours, so thought I should ask
I should probably not ask a generic question with a specific example, but I
This may not be the kind of question one should ask on StackOverflow, but
I want to make a little php poll. The script should ask the users
First of all, I could not decide if I should ask this here or
I want to ask you what programming language I should use to develop a
We're trying to create a .NET aspx page that will have a PDF within
I'm not sure if I should ask this here but here we go, while
I don't know if i should ask this question here, but it's related to
I don't even know what questions I should ask. Well, I want to create

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.