fileurlwithpath urlwithstring 这俩有啥区别吗

 这两个区别是
如果你的字符串是http://www.xxx.com这样就用urlwithstring这个方法把这个字符串转换成url对象
如果你的字符串是一个路径描述,比如/user/a/a.txt这样,就用fileurlwithpath转换成url对象

定义随机色的宏:

#define RandomColor [UIColor colorWithRed:arc4random_uniform(256)/255.0 green:arc4random_uniform(256)/255.0 blue:arc4random_uniform(256)/255.0 alpha:1.0]

原文地址:https://www.cnblogs.com/quwujin/p/4877386.html