2017年02月04日
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
2017年02月04日
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
2017年02月04日
Mac SpringBoardService函数:SBAppWillOrderInContextForDisplay SBAppDidOrderOutContextForDisplay  
2017年02月04日
1) 打印出完整的视图层次结构po [[UIWindow keyWindow] recursiveDescription]2)检查视图控制器po [[[UIWindow keyWindow] rootViewController] _printHierarchy]
2017年02月04日
__COUNTER__ 无重复的计数器,从程序启动开始每次调用都会++,常用语宏中定义无重复的参数名称
__FILE__:当前文件的绝对路径,常见于log中
__LINE__:展开该宏时在文件中的行数,常见于log中
__func__:所在scope的函数名称,常见于log中;这个常用来打印调用方法的函数名
2017年02月04日
About — prefs:root=General&path=AboutAccessibility — prefs:root=General&path=ACCESSIBILITYAirplane Mode On — prefs:root=AIRPL
2017年02月04日
公开的api如果只是想获取已连接的wifi信息。apple已经有公开的api可以使用.首先需要#import <SystemConfiguration/CaptiveNetwork.h>+ (id)fetchSSIDInfo
{
NSArray *ifs = (id)CNCopySupportedInterfaces();
NSLog(@"%s: Supported interfaces: 
2017年02月04日
最近开发中为了方便自己测试,准备弄个简单业务错误日志统计。由于只是测试用,况且出现我认为可能错的情况几率很小。想在不改变现有代码的情况下,直接获取NSLog内容。查了些资料,知道NSLog输出的内容会写到控制台和系统日志(ASL)里面。我就想在输入到ASL的时候把特定的数据给保存下来。但是我无法知道NSLog什么时候输出内容,看到网上开源的DDLogger的源码,找到了解决的方法。原来只是需要注册下系统的通知就可以拿到输出的时机,然后通过<asl.h>提供的方法去操作系统设备log。
2017年02月04日
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