码迷,mamicode.com
首页 >  
搜索关键字:nsdate nsstring    ( 5023个结果
UIAlertController+Extention
调用: UIAlertController+LYFExtention.h UIAlertController+LYFExtention.m GitHub地址: ...
分类:其他好文   时间:2018-11-21 16:12:49    阅读次数:124
NSThead的进阶使用和简单探讨
概述 NSThread类是一个继承NSObjct类的个轻量级的类。但需要管理线程的生命周期、同步、加锁等问题,这会导致一定的性能开销。 使用NSThread类可以让某个OC方法在特定的线程中被调用。当需要执行一个冗长的任务,并且不想让这个任务阻塞应用中的其他部分,尤其为了避免不阻塞app的主线程(因 ...
分类:其他好文   时间:2018-11-15 18:25:48    阅读次数:202
Notification通知代码简洁使用
1、自定义发送 Notification 的使用 1.1 通知(消息)的创建 "详细介绍篇" 1.2 发送通知 1.3 注册通知(观察者) 1.4 移除通知(观察者) 2、异步发送 Notification 的使用 2.1 发送异步通知 2.2 移除异步通知 3、系统通知的使用 3.1 UIDevi ...
分类:其他好文   时间:2018-11-15 00:22:01    阅读次数:295
代码待封装的textview
@interface HATextView : UITextView @property(nonatomic,copy) NSString *myPlaceholder; //文字 @property(nonatomic,strong) UIColor *myPlaceholderColor; @e ...
分类:其他好文   时间:2018-11-06 00:48:24    阅读次数:180
给button增加下划线
如何给button增加下划线简单版 - (void)setUnderLineForButton:(UIButton *)btn withTitle:(NSString *)title { //利用富文本的方式增加button下划线 NSMutableAttributedString*str = [[ ...
分类:其他好文   时间:2018-11-01 16:11:42    阅读次数:146
iOS 获取字符串中的所有数字
NSString * str = @"123/21年123" NSCharacterSet *nonDigitCharacterSet = [[NSCharacterSet decimalDigitCharacterSet] invertedSet]; //获取字符串中的数字 str = [[str ...
分类:移动开发   时间:2018-10-31 18:26:51    阅读次数:360
ios开发之--NSString中substringFromIndex,substringWithRange,substringToIndex方法的使用
1,substringFromIndex 从索引0开发到到index的后面的字符 2,substringWithRange 取指定range里面的字符,左边为索引index,右边为截取的范围 3,substringToIndex 从索引0到给定的索引index 代码如下: ...
分类:移动开发   时间:2018-10-29 12:56:05    阅读次数:230
Gif动态图UIImage
#pragma mark 动态图生成 -(UIImage *)getAnimatedGIFWithData:(NSString *)path { NSData *data = [NSData dataWithContentsOfFile:path]; if (!data) { return nil;... ...
分类:其他好文   时间:2018-10-22 20:15:04    阅读次数:414
获取ios设备信息
// 获取ios设备信息 - (void)viewDidLoad { NSString *content=[[NSString alloc] initWithFormat: @"unique id: %@ \nlocalized model: %@ \nsystem version: %@ \nsy ...
分类:移动开发   时间:2018-10-09 11:42:23    阅读次数:223
OC,nil,NULL,Nil,kCFNull
YYModel源码中有一句:kCFNull nil: define the id of a null instance, 指向一个(实例)对象的空指针 如:NSString *str = nil; NSDate *date = nil; Nil:defines the id of a null cl ...
分类:其他好文   时间:2018-10-09 00:44:01    阅读次数:178
5023条   上一页 1 ... 6 7 8 9 10 ... 503 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!