IOS
静静燃烧的雪
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
IOS-Frameworks-UIKit-UINavigationController.h
IOS-Frameworks-UIKit-UINavigationController.h// prohibit |prəʊˈhɪbɪt| transitive verb禁止// transition |ˌtrænˈzɪʃn,-ˈsɪʃn| noun过渡、过渡期- (void)setToolbarHidden:(BOOL)hidden animated:原创 2016-07-13 18:59:14 · 371 阅读 · 0 评论 -
IOS-usr/include-objc-NSObject-消息机制工作原理
初始化器一个类可以有多个初始化器,但通常只有一个指派初始化器,其他的初始化器调用指派初始化器来进行初始化。创建初始化器的规则:1:假如父类的初始化器够用,就没有必要在自定义类中再创建初始化器。//这个是显然的事情是不是。2:假如已经决定要创建一个初始化器,就必须重载父类的指派初始化器。//这个是应该的,要不然不小心调用了父类的指派初始化器怎么办?3:假如创建原创 2014-11-03 21:15:05 · 961 阅读 · 0 评论 -
IOS-Frameworks-Foundation-NSDateComponents+NSCalendar 处理2月30号,12:66分类似的时间。
NSCalendar * calendar = [NSCalendarcurrentCalendar]; NSDateComponents * dateCom = [[NSDateComponentsalloc]init]; dateCom.year =2015; dateCom.month =2; dateCom.day =原创 2015-08-09 14:37:50 · 662 阅读 · 0 评论 -
IOS-Frameworks-MessageUI-MFMailComposeViewController
#import // MessageUI.Frameworks/* @header MFMailComposeViewController @abstract The MFMailComposeViewController class provides an interface for editing and sending email.原创 2016-05-26 20:59:39 · 967 阅读 · 0 评论 -
IOS-Frameworks-UIKit-UIApplication-UIApplicationDelegate
// AppDelegate.m// Aapp//// Created by AnyMail on 15/6/11.// Copyright (c) 2015年 AnyMail. All rights reserved.//#import "AppDelegate.h"@interface AppDelegat原创 2016-05-26 21:09:01 · 714 阅读 · 0 评论 -
IOS-Frameworks-Foundation-NSDateFormatter
NSDateFormatter *format = [[NSDateFormatteralloc]init]; [format setTimeStyle:NSDateFormatterShortStyle]; [format setDateStyle:NSDateFormatterFullStyle]; NSLog(@"%@",[formatstringF原创 2016-06-17 10:08:21 · 295 阅读 · 0 评论 -
IOS-Frameworks-Foundation-NSDate
NSDate1:[NSDatedate]得到的时间是格林威治时间。2:- (id) dateByAddingTimeInterval : (NSTimeInterval) ti NS_AVAILABLE(10_6,2_0);返回一个增加ti秒数后的时间。3:- (NSTimeInterval)timeIntervalSinceDate:(NSDa原创 2016-06-17 10:11:35 · 323 阅读 · 0 评论 -
IOS-Frameworks-Foundation-NSTimeZone
NSTimeZone //管理时区的类。 NSTimeZone *zone = [NSTimeZonesystemTimeZone];NSLog(@"%@",zone); NSDate *date = [NSDatedate];NSLog(@"%@",date); //返回当前时区与格林威治时间之间的时间差(使原创 2016-06-17 10:12:21 · 410 阅读 · 0 评论 -
IOS-usr/include-objc-NSObject-指定初始化方法
初始化器一个类可以有多个初始化器,但通常只有一个指派初始化器,其他的初始化器调用指派初始化器来进行初始化。创建初始化器的规则:1:假如父类的初始化器够用,就没有必要在自定义类中再创建初始化器。//这个是显然的事情是不是。2:假如已经决定要创建一个初始化器,就必须重载父类的指派初始化器。//这个是应该的,要不然不小心调用了父类的指派初始化器怎么办?3:假如创建原创 2016-06-17 10:15:03 · 905 阅读 · 0 评论 -
IOS-Frameworks-Foundation-NSPathUtilities.h 文件夹路径
获取文件夹路径1:IOS-Frameworks-Foundation-NSPathUtilities.hNSArray *documentsPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);NSString *documentsDirectory0 =原创 2016-07-13 19:01:42 · 633 阅读 · 0 评论 -
2017-02-12 OC编程规范
1:类别命名类别命名应该以两三个字符的分类前缀作为一个项目或通用的公用部分。类别名应该包含类的扩展。举个例子,如果我们想要创建一个基于NSString的类别用于解析,我们应该把类别放到名字是LMNSString+Parsing.h的文件里,而类别本身的名字则是LMStringParsingAdditions(是的,我们明白这个类别和其文件名字不匹配,但这个文件可能还包括其他用于解析相关的类原创 2017-02-13 22:33:21 · 689 阅读 · 0 评论 -
IOS-Frameworks-UIKit-UIApplication-IOS唤醒其他程序,程序间相互调用
例如::在URLTypes中URLSchemes中组册AAPP;在B程序中,openUrl:[NSURL urlWithString:@"AAPP:"];注意":"冒号,没有冒号是不能成唤醒另一个程序的。其次如果参数中有“&”特殊字符穿,建议对参数进行base64转换。原创 2015-08-09 14:17:31 · 660 阅读 · 0 评论 -
IOS-Frameworks-UIKit-NSLayoutConstraint 布局相关工具类 参考《AutoLayout开发秘籍》第二版
//// UIView+ConstranitMatching.h// IosAutoLayout//// Created by ranzhou on 15/8/8.// Copyright (c) 2015年 ranzhou. All rights reserved.//#import @interface原创 2015-08-08 23:12:23 · 969 阅读 · 0 评论 -
IOS-Frameworks-UIKit-NSLayoutConstraint 自动布局注意事项
//自动布局注意事项:-(void)layoutTestFunc{ UIView * view0 = [[UIViewalloc]init]; //注意事项1:设置translatesAutoresizingMaskIntoConstraints为NO; view0.translatesAutoresizingMa原创 2015-08-08 17:47:05 · 5317 阅读 · 0 评论 -
IOS-Frameworks-UIKit-UIColor.h
IOS-Frameworks-UIKit-UIColor.h// alpha表示不透明度+ (UIColor *)colorWithRed:(CGFloat)red green:(CGFloat)green blue:(CGFloat)blue alpha:(CGFloat)alpha;原创 2016-07-13 19:00:30 · 367 阅读 · 0 评论 -
IOS-Frameworks-Foundation-NSFileManager.h
判断文件是否存在if([[NSFileManager defaultManager] fileExistsAtPath:filepath]){}原创 2016-07-13 19:02:35 · 359 阅读 · 0 评论 -
IOS-Frameworks-Foundation-NSNotification.h
IOS-Frameworks-Foundation-NSNotification.h跳出程序或进入后台会发出通知 UIApplication *app = [UIApplication sharedApplication]; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selec原创 2016-07-13 19:03:12 · 437 阅读 · 0 评论 -
IOS-Frameworks-UIKit-UIViewController
IOS-Frameworks-UIKit-UIViewController//按home键跳出程序并不会调用此函数-(void)viewDidDisappear:(BOOL)animated//返回程序后也不会调用下面的函数-(void)viewWillAppear:(BOOL)animated原创 2016-07-13 19:03:59 · 309 阅读 · 0 评论 -
IOS-Frameworks-UIKit-UIView.h
IOS-Frameworks-UIKit-UIView.h// Moves the specified subview so that it appears on top of its siblings. This method moves the specified view to the end of the array of views in the原创 2016-07-13 19:05:02 · 402 阅读 · 0 评论 -
IOS-usr/include-dispatch-queue.h
IOS-usr/include-dispatch-queue.h// 后台执行:dispatch_async(dispatch_get_global_queue(0,0), ^{ //something });// 主线程执行:dispatch_async(dispatch_get_main_queue(), ^{// something });// 一次性执行原创 2016-07-13 19:06:05 · 607 阅读 · 0 评论 -
IOS-usr/include-objc-runtime.h
IOS-usr/include-objc-runtime.hOC做为一门面向对象语言,自然具有面向对象的语言特性,如封装、继承、多态。他具有静态语言的特性(如C++),又有动态语言的效率(动态绑定、动态加载等)。整体来说,确实是一门不错的编程语言。 现在,让我来想想OC的动态语言特性。OC的动态特性表现为了三个方面:动态类型、动态绑定、动态加载。之所以叫做动态,是因为必须到运行时(原创 2016-07-13 19:07:04 · 1425 阅读 · 0 评论 -
IOS-Frameworks-UIKit-UIView.h-frame属性和bounds属性
IOS-Frameworks-UIKit-UIView.h-frame属性和bounds属性一、首先列一下公认的资料: 先看到下面的代码你肯定就明白了一些: -(CGRect)frame{ return CGRectMake(self.frame.origin.x,self.frame.origin.y,self.frame.siz原创 2016-07-13 21:54:44 · 471 阅读 · 0 评论 -
IOS-Frameworks-UIKit-UIResponder.h-UIView.h
IOS-Frameworks-UIKit-UIResponder.h-UIView.h在UIView中重写- (void)touchesBegan:(NSSetUITouch *> *)touches withEvent:(nullableUIEvent *)event等方法时,要调用super的相应方法forward the message up the respon原创 2016-07-13 21:55:27 · 371 阅读 · 0 评论 -
IOS-usr/include-objc-NSObject.h-ARC与非ARC
IOS-usr/include-objc-NSObject.hARC与非ARC专题1: iOS5中,有个很吸引眼球的特性就是“Automatic Reference Counting”,简单来说就是自动引用计数。Objective-c 2.0支持垃圾收集器(Garbage Collection,简称GC),但是垃圾收集器只能在MAC程序上开启,iOS上没办法用。就原创 2016-07-13 21:56:09 · 580 阅读 · 0 评论 -
IOS中UITableViewCell生成方式
方案1:根据工程需要,为每种类型的TableviewCell定义一个子类,在子类中完成布局等工作。方案2:在通过对方案1的实践中发现由此产生了大量的子类,而且由于部分子类采用NSLayout进行布局,难以复用。因此,有了方案2:创建一个工厂类,通过工厂类根据类型,生成需要的Cell,这个就分隔了Cell的用户以及Cell的生成过程。这是第一步,第二步,根据观察,大部分TableView...原创 2018-07-22 12:51:04 · 443 阅读 · 0 评论
分享