```
NSString *rateStr = [NSString stringWithFormat:@"七日年化 %.2f%%",info.rate]; [self.rateLabel setText:rateStr afterInheritingLabelAttributesAndConfigu... ...
分类:
其他好文 时间:
2018-08-14 14:25:54
阅读次数:
212
NSArray* arr = @[@"1",@"2",@"3"]; arr = [arr sortedArrayUsingComparator:^NSComparisonResult(NSString *str1, NSString *str2) { int seed = arc4random_un... ...
分类:
移动开发 时间:
2018-08-07 15:20:03
阅读次数:
198
模仿支付宝首页的布局,控件透明渐变,headerView跟随tableView滑动效果。 ...
分类:
移动开发 时间:
2018-08-07 15:03:25
阅读次数:
271
原帖地址:https://blog.csdn.net/qq_22383951/article/details/53019034 WHAT 本篇主要是基于Nginx在Mac上搭建自己的服务器。 本篇主要是基于Nginx在Mac上搭建自己的服务器。 我相信很多朋友肯定是第一次听到Nginx,关于它具有怎 ...
分类:
系统相关 时间:
2018-08-06 00:39:27
阅读次数:
237
//如何计算文本在一定情况下的具体高度和宽度 //size:计算的参考尺寸,必须高度或者宽度确定 NSString *text = @"The UIViewController class provides the infrastructure for managing the views of y ...
分类:
其他好文 时间:
2018-08-04 21:37:48
阅读次数:
130
RSA加密如何让字符串NSString如何转成SecKeyRef? RSA加密如何让字符串NSString如何转成SecKeyRef? 注意:此方法只适用于服务器生成的der格式的公钥字符串,dem格式的会在SecTrustCreateWithCertificates函数处崩溃。 注意:此方法只适用 ...
分类:
其他好文 时间:
2018-08-02 11:21:11
阅读次数:
146
NSString *str = [NSString stringWithFormat:@"%@://%@",[dic objectForKey:@"ios_url_scheme"],[dic objectForKey:@"app_bundle_id"]]; NSURL *app_url = [NSU... ...
分类:
移动开发 时间:
2018-07-27 20:55:33
阅读次数:
171
property在使用的时候需要在其前面加上@符号,需要将其写在类的头文件中 当在定义一个对象的属性变量时,例如定义一个Person类中的name属性,可定义为: @property (nonatomic, strong) NSString *name; 当在定义C语言的基础变量时,可定义为: @p ...
分类:
其他好文 时间:
2018-07-26 13:26:04
阅读次数:
144
NSString的长度问题 pow(2, 15) 为啥要 -19 如下代码产生这个问题: 输出如下: ...1111 32749 2018-07-25 15:08:27.280985+0800 Demo[30718:219829] 32749 ...1111 <decode: missing dat ...
分类:
其他好文 时间:
2018-07-25 16:08:12
阅读次数:
990