iphone-privateapi

add GraphicsServices private framework into IOS

二次信任 提交于 2019-12-22 12:41:45
问题 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? 回答1: If you missed to import certain framework means, you may get like this kind of error.. When I met like

Any non-private API alternative for this?

被刻印的时光 ゝ 提交于 2019-12-22 11:29:55
问题 My app was recently rejected due to using a private API ( addTextField: method for UIAlertView , which is quite useful, might I add). Is there any non-private alternative to UIAlertView 's undocumented addTextFieldWithValue:label: ? Thanks SO much in advance! 回答1: create the text field as a subview of the UIAlertView // Ask for Username and password. alertView = [[UIAlertView alloc] initWithTitle:_title message:@"\n \n \n" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil

Xcode 7.3 missing Private Frameworks

妖精的绣舞 提交于 2019-12-22 09:58:21
问题 I recently upgraded my Xcode to version 7.3. When I compile my exisiting project I get this error message: directory not found for option '-F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk/System/Library/PrivateFrameworks' As per this post, private frameworks have been removed with Xcode 7.3. Any suggestions as to potential solutions? 回答1: According to the Xcode 7.3 release notes: The Apple private frameworks have been removed from the iOS

iOS 6 - BluetoothManager framework - “NSObject” not found error

喜欢而已 提交于 2019-12-22 09:18:45
问题 My question is a duplicate of this one. But that one (rightly)got closed as non constructive, with zero answer and with absolutely no use to anyone. I am trying to connect to a external bluetooth accessory from my iPhone 5. The accessory is neither MFI certified nor support Bluetooth Low energy communication . So my only option is to connect to it using a private Framework, and I am doing that since I am not intending to push my app to App store. The app is for personal use. I am trying to

iOS 11 : Cellular Signal strength

你离开我真会死。 提交于 2019-12-21 21:15:07
问题 I was fetching Cellular Signal Strength(iOS < 11) as mentioned below, but in iOS 11 , signalStrength is always 0 let statusBarView = UIApplication.shared.value(forKey: "statusBar") as? UIView if let foregroundView = statusBarView?.value(forKey: "foregroundView") as? UIView { let subiews = foregroundView.subviews var dataNetworkItemView:UIView? for subview in subiews { if subview.isKind(of: NSClassFromString("UIStatusBarSignalStrengthItemView")!) == true { dataNetworkItemView = subview break }

How to use MKLocationManager (a Private API) in iOS

余生颓废 提交于 2019-12-21 02:54:42
问题 I need to call [[MKLocationManager sharedLocationManager] _applyChinaLocationShift:newLocation] in my iOS app. I believe MKLocationManager is a private class, and there does not seem to have a MapKit/MKLocationManager.h file. I'm not targeting App Store. It's there any way I can use that private API? Update at 2011-6-23 I really need the answer, or could I de-complie the iOS SDK? 100 reputation is almost all I have. Please help me. 回答1: If the above answer isn't working for you, this may be

How to fetch the list of near by wifi networks and able to connect to them from our App in ios (Using private API for enterprise App)?

北慕城南 提交于 2019-12-20 04:33:06
问题 I want to fetch the list of near by wifi networks and able to connect to them from our App in ios, and my Application is Enterprise App so even private api's is also fine. Stuck this issue since 2 weeks, please provide me some references.. 回答1: What you require will only work on JailBroken devices, the blog(blog.guvenergokce.com/iphone-wireless-scanner-ios5/170) which @Ckouta referred also has one comment from the Blog Admin, I’m assuming that your device is already jailbroken (otherwise not

object_setInstanceVariable with CGPoint

删除回忆录丶 提交于 2019-12-19 09:56:22
问题 Does anyone know how to set struct variables using object_setInstanceVariable? It is work fine for reference types: object_setInstanceVariable(obj, "_variable", ref); But do not work for structs such as CGPoint. Tried following ways: 1. object_setInstanceVariable(obj, "_variable", point); 2. object_setInstanceVariable(obj, "_variable", &point); 3. object_setInstanceVariable(obj, "_variable", (void **)&point); I'm not sure I understand what I'm doing (especially for the last step)... Thanks

How to catch all push notifications from other apps on iOS using private frameworks?

情到浓时终转凉″ 提交于 2019-12-18 18:30:53
问题 I'm looking for a method to detect incoming push notifications directed to other apps on iOS. I know there's probably no way this can be done with public frameworks, but since this is for a personal project, I can use private libraries. I want to contact via bluetooth an external device every time I get a notification, but I can't program the device itself (so no ANCS). I've looked into the SpringBoardServices and the BulletinBoard private frameworks, but I'm not an expert programmer, so I

iOS - Screen sharing in Perfecto Mobile

那年仲夏 提交于 2019-12-18 13:36:44
问题 We were exploring various test suites for mobile automated testing and ran into this company called Perfecto Mobile. One of the features that blew me away was they are able to (without jailbreaking) effectively perform a "Remote desktop" on a physical iPad. So, the iPad's screen is mirrored within a web application, it can register touch / swipe events on the web app and perform them on the device. The only relevant technical detail I have is that all this is being performed using commands