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

  • Home
  • SEARCH
  • 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 9023885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:52:17+00:00 2026-06-16T05:52:17+00:00

How to import Social framework only for iOS 6? I want to disable the

  • 0

How to import Social framework only for iOS 6? I want to disable the Social Framework for other iOS versions. Currently I am trying this and I also tried to change the FrameWork to optional, But not running on iOS 5.1 simulator.

if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 6.0)
        {
          #import <Social/Social.h>   
        }

Please tell how to check and run for both iOS 5 and iOS 6. Thanks.

  • 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-16T05:52:18+00:00Added an answer on June 16, 2026 at 5:52 am

    Firstly: don’t query the OS version for guessing what is supported, check if a particular feature is actually available instead of using it based on assumptions.

    That said, recent versions of iOS and the toolchain support weak linking. Just check for the class you’re intending to use is not Nil (method #1). You can also use the Objective-C runtime for this (method #2):

    // method #1 - weak linking
    if ([SLRequest class] != Nil) {
        // Social.framework is available
    }
    
    // method #2 - querying the runtime
    if (NSClassFromString(@"SLRequest") != Nil) {
        // Social.framework is available
    }
    

    For weak linkage to take effect, the frameworks you intend to use like this shall be added as “optional” instead of as “required”. If you don’t use Xcode or an IDE but only a command line toolchain, weak linkage can be enforced by passing

    -flat_namespace -undefined dynamic_lookup
    

    to the linker.

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

Sidebar

Related Questions

I'm trying to allow users to import their existing pictures to my social network.
I am trying to add a social share functionality to my ios application in
import xlrd book = xlrd.open_workbook(File_1.xls) sheet = book.sheet_by_index(0) print sheet.row_values(0)[0] I am trying to
import xlrd book = xlrd.open_workbook(univ_list.xls) I'm new to python. I'm trying to read a
I am developing a social application using ASP.net and C# under .Net Framework 4.0.
I'm trying to use the Yahoo Social Python SDK to get a users contacts
I have this method in an external view controller APICallsViewController.m that I want to
(pinax09)[user@web213 social]$ python manage.py syncdb Error: Can't import Pinax. Make sure you are in
I'm currently writing an app that uses Facebook integration built into iOS 6. Now
I working on facebook integration in ios6.I added social,accounts frameworks and import as follows

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.