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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:02:04+00:00 2026-05-23T00:02:04+00:00

As a beginning iPhone programmer, what is the best practice for writing apps to

  • 0

As a beginning iPhone programmer, what is the best practice for writing apps to be used either with iOS 5 or older versions? Specifically, should I continue using the release/retain of data, or should I ignore that? Does it matter?

  • 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-23T00:02:04+00:00Added an answer on May 23, 2026 at 12:02 am

    It’s up to you. You can write apps using ARC (Automatic Reference Counting), and Xcode will write “glue code” to allow your ARC enabled apps to run on iOS 4, no modifications required. However, certain things wont work, and most noticeably many libraries you might wish to use will (sometimes) throw up innumerable errors and you will be unable to use them until the developers release an update which is compatible with ARC.


    Edit: I recently discovered that you can turn off ARC on a per-file basis. See pixelfreak‘s answer. So, my advice still stands, but now the 3rd-party libraries shouldn’t need to be updated to work with ARC.

    Here’s what Apple says about opting out of ARC for specific files:

    When you migrate a project to use ARC, the -fobjc-arc compiler flag is
    set as the default for all Objective-C source files. You can disable
    ARC for a specific class using the -fno-objc-arc compiler flag for
    that class. In Xcode, in the target Build Phases tab, open the Compile
    Sources group to reveal the source file list. Double-click the file
    for which you want to set the flag, enter -fno-objc-arc in the pop-up
    panel, then click Done.

    enter image description here

    See the full transition guide here.

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

Sidebar

Related Questions

I am a beginning iPhone SDK programmer. I built a simple practice application I
So I am just beginning recently developing some simple apps for the iphone. I
I'm writing an iPhone application which you need to authenticate at the beginning. Therefore
Code in the book Beginning iPhone Development (by Dave Mark & Jeff LaMarche) assigns
I am working through Beginning iPhone Development . In the book is this method:
I am beginning to work on my first OpenGL iPhone app, but I've hit
I'm just beginning iPhone development, so please bear with me. I'm looking to make
I'm going through the Beginning iPhone Development book & stuck in chapter 9. I've
The code below is from the book Beginning iPhone 3 Development , chapter 15,
I'm new to Objective-C and iPhone development and have been using Apress' Beginning iPhone

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.