doorxp-blog

doorxp.com

LockMeNow!

My iPhone 5 lock button is not working properly, so I wrote this application.Locking the iDeviceSince I want to lock the device, I need to be able to trigger the same functionality iOS does when the lock button is hit. However, Apple does not play n

How to Enable “Slide to Unlock” Feature in iOS 10 on iPhone/iPad

Step #1. Starting off, you need to take a backup of your iPhone using iTunes. The backup must be unencrypted.Step #2. Next, you have to download and install iBackupBot on your Mac/Windows.Step #3. Now, launch iBackupBot and select your backup.St

mac/ios SpringBoard及BackgroundBoard函数

Mac SpringBoardService函数:SBAppWillOrderInContextForDisplay                           SBAppDidOrderOutContextForDisplay                  

XCode lldb 调试 po命令

1) 打印出完整的视图层次结构po [[UIWindow keyWindow] recursiveDescription]2)检查视图控制器po [[[UIWindow keyWindow] rootViewController] _printHierarchy]

常用宏

__COUNTER__ 无重复的计数器,从程序启动开始每次调用都会++,常用语宏中定义无重复的参数名称 __FILE__:当前文件的绝对路径,常见于log中 __LINE__:展开该宏时在文件中的行数,常见于log中 __func__:所在scope的函数名称,常见于log中;这个常用来打印调用方法的函数名

iOS应用跳转到设置界面URL Scheme参考

About                  — prefs:root=General&path=AboutAccessibility          — prefs:root=General&path=ACCESSIBILITYAirplane Mode On       — prefs:root=AIRPL

iOS私有API之wifi扫描和wifi连接

公开的api如果只是想获取已连接的wifi信息。apple已经有公开的api可以使用.首先需要#import <SystemConfiguration/CaptiveNetwork.h>+ (id)fetchSSIDInfo { NSArray *ifs = (id)CNCopySupportedInterfaces(); NSLog(@"%s: Supported interfaces: 

iOS 注册进程之间的通知

最近开发中为了方便自己测试,准备弄个简单业务错误日志统计。由于只是测试用,况且出现我认为可能错的情况几率很小。想在不改变现有代码的情况下,直接获取NSLog内容。查了些资料,知道NSLog输出的内容会写到控制台和系统日志(ASL)里面。我就想在输入到ASL的时候把特定的数据给保存下来。但是我无法知道NSLog什么时候输出内容,看到网上开源的DDLogger的源码,找到了解决的方法。原来只是需要注册下系统的通知就可以拿到输出的时机,然后通过<asl.h>提供的方法去操作系统设备log。

iOS — Sending Notifications between your apps

How to notify from one of your app to be notified from your another app.This was one of problem I faced while I was working on iOS8 new feature extensions (Document Provider Extension).When you add any extensions to your project you have add it

iOS应用内监听wifi的变化

Apple 设备可在用户不感知的情况下进行wifi的切换,如果我们在App 内部需要感知设备wifi切换的变化,可以在 Darwin Notify Center 中注册监听 kNotifySCNetworkChange 通知,如下:static void onNotifyCallback(CFNotificationCenterRef center,          &nb

Powered By Z-BlogPHP 1.5.1 Zero

Copyright doorxp.com Rights Reserved.