摘要: 什么是Notification?什么时候用delegate,什么时候用Notification? 1.什么是Notification? 答:观察者模式,controller向defaultNotificationCenter添加自己的 notification,其他类注册这个notification 阅读全文
posted @ 2017-02-24 18:00 LiziBlog 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Xcode 升级至xcode8后 出现的不少的Bug 在Xcode8上一直输出出现AQDefaultDevice(173):Skipping input stram 0 0 0x0 解决方法: 1 选择product-->Scheme-->Edit Scheme 2选择Arguments 3 在En 阅读全文
posted @ 2017-02-23 17:31 LiziBlog 阅读(439) 评论(0) 推荐(0) 编辑
摘要: 直播 http://wzfree.10043.doftp.com/tvtest/50vtv.php/live/id/78.m3u8 view http://blog.csdn.net/zhengang007/article/details/46873019 MVVM http://yulingtia 阅读全文
posted @ 2017-02-23 13:18 LiziBlog 阅读(320) 评论(0) 推荐(0) 编辑
摘要: xcode6.0升级到xcode6.1后,程序编译报错,错误如下:这是个很常 见的错误,很多项目在更换xcode版本后,都会出现类似的问题。 Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_QQApiInterface", refe 阅读全文
posted @ 2017-02-22 17:30 LiziBlog 阅读(1607) 评论(0) 推荐(0) 编辑
摘要: //frame 是你所需要的区域大小 +(UIImage *)screenshotsImageFram:(CGRect)frame{ UIWindow *screenWindow = [[UIApplication sharedApplication] keyWindow]; UIGraphicsB 阅读全文
posted @ 2017-09-25 14:48 LiziBlog 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 方法一 UIView *view = [[UIView alloc]initWithFrame:CGRectMake(100, 100, 100, 100)]; view.backgroundColor = [UIColor redColor]; view.layer.cornerRadius = 阅读全文
posted @ 2017-09-08 11:01 LiziBlog 阅读(210) 评论(0) 推荐(0) 编辑
摘要: Objective-C,通常写作ObjC或OC和较少用的Objective C或Obj-C,是扩充C的面向对象编程语言。它主要使用于Mac OS X和GNUstep这两个使用OpenStep标准的系统,而在NeXTSTEP和OpenStep中它更是基本语言。 GCC与Clang含Objective- 阅读全文
posted @ 2017-09-06 14:35 LiziBlog 阅读(112) 评论(0) 推荐(0) 编辑
摘要: NSMutableArray *dicToArray = [NSMutableArray array]; NSMutableDictionary *arrayToDic = [NSMutableDictionary dictionary]; NSDictionary *dic = @{@"1":@" 阅读全文
posted @ 2017-09-06 11:38 LiziBlog 阅读(1933) 评论(0) 推荐(0) 编辑
摘要: //设置毛玻璃效果 +(void)blurEffrct:(UIView *)view{ UIBlurEffect* effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]; UIVisualEffectView* effectView = [[UIVisualEffectView alloc] initWith... 阅读全文
posted @ 2017-08-26 17:14 LiziBlog 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 调用 阅读全文
posted @ 2017-08-07 18:10 LiziBlog 阅读(431) 评论(0) 推荐(0) 编辑
摘要: Healp 类方法里 调用 实例方法前边不带class 类方法带 阅读全文
posted @ 2017-08-07 18:04 LiziBlog 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 方法类 引用 阅读全文
posted @ 2017-08-04 14:37 LiziBlog 阅读(2482) 评论(0) 推荐(0) 编辑
摘要: oc Swift 阅读全文
posted @ 2017-08-01 15:27 LiziBlog 阅读(512) 评论(0) 推荐(0) 编辑
摘要: let rootV = ViewController() let rootNav = UINavigationController.init(rootViewController: rootV) self.window?.rootViewController=rootNav 阅读全文
posted @ 2017-08-01 15:21 LiziBlog 阅读(1702) 评论(0) 推荐(0) 编辑