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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:53:27+00:00 2026-06-05T00:53:27+00:00

I want to switch on bluetooth grammatically in iPhone. This is my code for

  • 0

I want to switch on bluetooth grammatically in iPhone. This is my code for that —

Class BluetoothManager = objc_getClass("BluetoothManager");
id btCont = [BluetoothManager sharedInstance];
[btCont setPowered:YES];

I put the .header files under Header flolder under following path :

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/System/Library/PrivateFrameworks/BluetoothManager.framework/Headers

But the problem is that its giving me an error i.e. : ‘BluetoothManager/BluetoothManager.h’ file not found

So please let me know if I done something wrong here.

I found this all stuff from following link :

Programmatically turn on bluetooth in the iphone sdk?

Thank you very much
In advance.

  • 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-05T00:53:28+00:00Added an answer on June 5, 2026 at 12:53 am

    with finding trying various things, I found the simple way to trun on bluetooth with “GameKit” framework.

    Steps to implement :

    1. Add the GameKit framework to your project.

    2. Import class to your project — #import GameKit/GameKit.h>

    3. create object of GKPeerPickerController
      GKPeerPickerController *connectionPicker;

    4. Paste this code in viewDidLoad

      connectionPicker = [[GKPeerPickerController alloc] init];
      connectionPicker.delegate = self;
      [connectionPicker show];

    It showing you the alert popup to turn on bluetooth and clicking on yes you will get the bluetooth on.

    But I dont know about the customizing that popup so if anyone knows please let me know.

    Thank you in advance. 🙂

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

Sidebar

Related Questions

Still am using Coredata framework for iPhone applications. I want switch to use SQLite
I want to switch some code from using .NET's DataContractSerializer to using ServiceStack's TypeSerializer
I have a PHP application that I want to switch from MySQL to Cache
This looks like a noob T-SQL question but I want do switch like logic
I redefined QApplication class and add switchLanguage slot and i want to switch language
Here is the test code that I am using : public class IOConnectDirect extends
I want to switch between different projects, and one part of that is changing
as topic, I want switch the network connection from 3G or WIFI via iPhone
I have two apps that I want to be able to switch between without
I have 3 images that I want to switch between. I put each one

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.