关闭

CocoaPods 公司电脑安装

好像安装的时候最痛苦。。。各种卡不动 网络问题还是被墙了?...
阅读(803) 评论(0)

iOS 8 : Change of Launch Daemons

iOS 8 更新后,发现Daemons不会自启动...
阅读(932) 评论(0)

iOS 7: How to get own number via private API?

iOS 越狱开发 获取本机手机号码: http://stackoverflow.com/questions/19504478/ios-7-how-to-get-own-number-via-private-api...
阅读(956) 评论(0)

ld: warning: directory not found for option '-F"/Applications/Xcode.app/Contents/Developer/Platforms

在用AFNetworking 或者 Reachablity.h/.m的时候,遇到这个编译错误: ld: warning: directory not found for option '-F"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.s...
阅读(1252) 评论(0)

防止iOS程序进入休眠状态

设置应用程序的 idleTimerDisabled 属性为 YES (默认为NO) [UIApplication sharedApplication].idleTimerDisabled=YES; //当然一定要慎用,记着退出程序时把自动休眠功能开启...
阅读(670) 评论(0)

AFNetworking 2.0 编译不过的问题修复

Link: http://blog.csdn.net/zaitianaoxiang/article/details/22597785 AFNetworking 2.0 当Deployment Target 低于6.0时,AFURLConnectionOperation.h,AFURLSessionManager.h @property (nonatomic, strong) dispa...
阅读(413) 评论(0)

Xcode Interface Builder Help Link

https://developer.apple.com/library/ios/recipes/xcode_help-interface_builder/_index.html...
阅读(287) 评论(0)

Colorize Git Terminal Commands

Add the following to your ~/.gitconfig file to show the git command output in color when working in a terminal. This is really handy, give it a go. [color] ui = auto [color "branch"] current = ...
阅读(411) 评论(0)

Get Application Display Name

[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];...
阅读(655) 评论(0)

NSString写入文件,append模式实现

- (BOOL)appendToFile:(NSString *)path usingEncoding:(NSStringEncoding)encoding { NSLog(@"\n\n Append String :%@", self); NSFileHandle *fh = [NSFileHandle fileHandleForWritingAtPath:path];...
阅读(553) 评论(0)

Introduction to CocoaPods Tutorial

http://www.raywenderlich.com/64546/introduction-to-cocoapods-2...
阅读(311) 评论(0)

Presenting a local notification immediately while running in the background

- (void)applicationDidEnterBackground:(UIApplication *)application { NSLog(@"Application entered background state."); // bgTask is a property of the class NSAssert(self.bgTask == UII...
阅读(593) 评论(0)

Creating, configuring, and scheduling a local notification

- (void)scheduleNotificationWithItem:(ToDoItem *)item interval:(int)minutesBefore { NSCalendar *calendar = [NSCalendar autoupdatingCurrentCalendar]; NSDateComponents *dateComps = [[NSDateComp...
阅读(553) 评论(0)

Monitoring the death of a parent process (via Dispatch Sources)

void MonitorParentProcess() { pid_t parentPID = getppid(); dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_source_t source = dispatc...
阅读(420) 评论(0)

Installing a block to monitor signals (via Dispatch Sources)

void InstallSignalHandler() { // Make sure the signal does not terminate the application. signal(SIGHUP, SIG_IGN); dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_...
阅读(593) 评论(0)
367条 共25页1 2 3 4 5 ... 下一页 尾页
    个人资料
    • 访问:295886次
    • 积分:5735
    • 等级:
    • 排名:第4998名
    • 原创:264篇
    • 转载:93篇
    • 译文:10篇
    • 评论:7条
    文章分类
    最新评论