iphone-privateapi

iOS AirPlay Action Sheet for public app store publishing - like in Spotify

瘦欲@ 提交于 2019-12-06 14:57:37
问题 I've been working on a project that involves AirPlay endpoint selection and was wondering how the guys at Spotify had done the following in-app selection of the available AirPlay endpoints (you can see an AirPlay icon/message at the bottom of the app that when tapped brings up a similar Action Sheet to what you'd see via the Control Center): From what I know, the only "public" API one may use for this kind of thing is MPVolumeView which is not necessarily the same, as it'd show a volume

ERROR: iPhone Private Frameworks “No such file or directory”

柔情痞子 提交于 2019-12-06 13:30:50
问题 I have added Private Frameworks To my project. When I build in DEVICE | RELEASE everything works fine and I am able to ldid -S the application and it successfully launches on my device. However, when trying to BUILD AND GO in Simulator, I get the error "No such file or directory" as indicated below: (I also get the error twice which is strange too.) Line Location HomeProfileViewController.h:10: error: BluetoothManager/BluetoothManager.h: No such file or directory Below are the project and

iOS device On/Off notification

醉酒当歌 提交于 2019-12-06 12:37:26
问题 I understand that this task requires Private API and the app is not designed for the AppStore. So, is it possible to know when the system(iOS) is switching to off state and when it wakes up? Maybe it sends some system notifications about that? 回答1: I assume you're talking about notifications when device is turned on/off. I was having the same problem and notifications were my first choice. But I found much simpler and more robust solution. You see, usually notifications are sent just one time

How to hook methods of MPIncomingPhoneCallController?

江枫思渺然 提交于 2019-12-06 12:25:07
问题 I want to hook methods of class MPIncomingPhoneCallController in iOS 5 to do something when a call comes. I use Class _$MPIncomingPhoneCallController = objc_getClass("MPIncomingPhoneCallController"); MSHookMessage(_$MPIncomingPhoneCallController, @selector(updateLCDWithName:label:breakPoint:), (IMP) &Hook_LCD, "pre_"); to hook updateLCDWithName:label:breakPoint: , but it failed. How can I do this? 回答1: Class you are trying to hook is located in IncomingCall.serviceBundle which gets loaded in

Accessing Private iOS Apis, How to? [closed]

岁酱吖の 提交于 2019-12-06 11:43:50
Closed. This question is off-topic . It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I would like to access some private APIs from the iOS SDK, related to the Camera like: - (void)setExposureMode:(int)arg1; - (int)exposureMode; Etc. This is only for my personal development and I don't plan on submitting any Apps to the store. But I can't seem to figure out how to access and use these APIs. Is there any tutorial or book explaining the procedure? For example, I tried adding this line to my .h file:

UIScreen mainScreen in Xcode 8

て烟熏妆下的殇ゞ 提交于 2019-12-06 10:50:17
问题 We have a problem with iOS SDK in Xcode 8. We use method [UIScreen mainScreen] in our project. This method is available from iOS 2.0. But when we built product in Xcode 8 and submited it for review, app was rejected. Surprise: in the new SDK ( Xcode 8 GM ) this method marked as “ available from iOS 10.0 ”. In other words - now iOS 9 identifies [UIScreen mainScreen] as “ non-public API ”. Perhaps this is Apple’s bug. Our question: 1) We want to continue using this method. 2) We want to support

Is there a private API available to access the SIM Toolkit?

余生颓废 提交于 2019-12-06 10:24:27
I'm investigating what APIs are available for accessing the SIM toolkit, does anything exist? (Yes I know any use of such an API wouldn't permit the app to be submitted to the app store) 1) You can take a look at CoreTelephony framework (disassemble it). It has bunch of functions around SimToolkit like: CTServerConnectionCopySimToolkitMenu CTServerConnectionSelectSimToolkitMenuItem and so on. 2)You can take a look (disassemble) at /System/Library/SpringBoardPlugins/SimToolkitUI.servicebundle/SimToolkitUI You will be able to see what functions are used there (you will see a lot of functions

Implement MobileWIFI Private Framework in Xcode 7.3

耗尽温柔 提交于 2019-12-06 09:26:38
I am creating a private App in Xcode 7.3 ( iOS 9.3) , where I am going to utilize the WiFi Info. I have Followed this link , Bluetooth Private Framework works fine However: I am trying to implement Private Framework " MobileWIFI.Framework " in XCode 7.3 , but it gives me this error: "_WiFiManagerClientCopyNetworks", referenced from: - [AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o "_WiFiManagerClientCreate", referenced from: -[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker

Which method is called when device is about to be unlocked?

℡╲_俬逩灬. 提交于 2019-12-06 09:15:32
I would like to know where the -(void)unlock (or whatever is called) used when we "slide to unlock" on the LockScreen is. Has anyone an idea ? Try these iOS 4 - 5 SBAwayController -(void)_finishedUnlockAttemptWithStatus:(char) Argument will be non zero (I don't quite sure it will always be 1 when device is unlocked) when device is about to be unlocked. iOS 6 SBAwayController -(void)_finishUnlockWithSound:(char) unlockSource:(int) isAutoUnlock:(char) iOS 7 SBLockScreenViewController -(void)finishUIUnlockFromSource:(int) Divya Bhalodiya You can use by calling the method GSEventLockDevice ();

add GraphicsServices private framework into IOS

梦想的初衷 提交于 2019-12-06 07:38:59
actually I need to lock my iPhone programmatically, I have searched in the internet, also got some ideas, that is, using GraphicsServices.framework and GSEventLockDevices() method.. here is the thing: how can I add a private framework to my project? I knew it's jailbreaking, but no problem. Could anyone help me to add a private framework to Xcode and lock the device programmatically? If you missed to import certain framework means, you may get like this kind of error.. When I met like this kind of problem, i have followed this way.. 1) Select the project in the project navigation window which