摘要: 对GCD的一些理解和实践 GCD GCD,全程Grand Central Dispatch,是苹果为了多核并行提出的解决方案。它是使用C语言实现,但是由于用了block来处理回调,所以使用起来十分方便。并且GCD会自动管理线程的生命周期,不需要我们去管理。 任务和队列 GCD中有两个重要的概念,任务 阅读全文
posted @ 2016-09-21 17:04 Hooy星 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 兼容iOS 10 资料整理笔记 字数2766 阅读19351 评论109 喜欢524 1.Notification(通知) 自从Notification被引入之后,苹果就不断的更新优化,但这些更新优化只是小打小闹,直至现在iOS 10开始真正的进行大改重构,这让开发者也体会到UserNotifica 阅读全文
posted @ 2016-09-21 16:39 Hooy星 阅读(253) 评论(0) 推荐(0) 编辑
摘要: iOS开发 适配iOS10以及Xcode8 字数1496 阅读22067 评论182 喜欢205 现在在苹果的官网上,我们已经可以下载到Xcode8的GM版本了,加上9.14日凌晨,苹果就要正式推出iOS10系统的推送了,在此之际,iOS10的适配已经迫在眉睫啦,不知道Xcode8 beat版本,童 阅读全文
posted @ 2016-09-21 16:10 Hooy星 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题目:创建3个UISlider对象。⽤用这3个UISlider对象控制self.view.backgroundColor的变化。 3个UISlider对象分别控制UIColor的red,green,blue。 滑动任何⼀一个UISlider都会引起背景颜⾊色变化。#import "AppDelega... 阅读全文
posted @ 2015-08-26 23:12 Hooy星 阅读(155) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h"#import "RootViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (void)dealloc{ [_window release]; [su... 阅读全文
posted @ 2015-08-26 13:26 Hooy星 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 题目:⾃自定义view,实现点击事件。不同的实例,点击效果不同:点击视图改变颜色、点击视图改变位置,点击视图修改⼤⼩。#import "AppDelegate.h"#import "TargetActionViewController.h"@interface AppDelegate ()@end@... 阅读全文
posted @ 2015-08-25 23:53 Hooy星 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Delegate􏱋􏰨􏰩􏰒􏱡􏱠􏱢 自定义视图CustomView ,创建一个实例对象,开始点击时视图缩短,移动过程中随机修改颜色,结束点击时视图恢复宽度#import "AppDelegate.h"#import "RootViewController.h"@interface AppD... 阅读全文
posted @ 2015-08-25 23:43 Hooy星 阅读(192) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h"#import "ViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (void)dealloc{ [_window release]; [super ... 阅读全文
posted @ 2015-08-24 21:34 Hooy星 阅读(336) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h"@interface AppDelegate ()@end@implementation AppDelegate- (void)dealloc{ [_window release]; [super dealloc];}- (BOOL)applicat... 阅读全文
posted @ 2015-08-23 16:15 Hooy星 阅读(338) 评论(0) 推荐(0) 编辑
摘要: #import "AppDelegate.h"#import "LoginViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (void)dealloc{ [_window release]; [s... 阅读全文
posted @ 2015-08-23 16:00 Hooy星 阅读(203) 评论(0) 推荐(0) 编辑