2017年11月9日
摘要:
_dataArr 这里面有20个元素,需求是只要3个 for(int i = 0;i<3;i++){//先拿3个,循环拿取 NSIndexSet *indexset = [NSIndexSet indexSetWithIndexesInRange:NSMakeRange(0,2)];//范围0,1,
阅读全文
posted @ 2017-11-09 11:26
廖利君
阅读(4778)
推荐(0)
摘要:
1,打来终端 进入项目根目录 cd 进入 cd .. 返回上一层 ls 查看当前目录下的子文件 vim 是修改当前目录文件 注:在该目录下也可以创建新的目录 esc+:+wq 是修改后退 mkdir 创建目录 mv 移动文件 例:想把mac.text 移到桌面 mv /System/Library/
阅读全文
posted @ 2017-11-09 10:36
廖利君
阅读(368)
推荐(0)
摘要:
实际运用场景: 上传图片,查看相机设备,使用相机 在做这些操作的时候先调用这段话 AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo]; if (au
阅读全文
posted @ 2017-11-09 10:30
廖利君
阅读(1171)
推荐(0)
2017年11月7日
摘要:
#import <MAMapKit/MAMapKit.h> #import "MLFoundCarModel.h" @protocol MLCustomerAnnotationviewDelegate<NSObject> -(void)clickAnnotionView:(NSString * )I
阅读全文
posted @ 2017-11-07 10:26
廖利君
阅读(1526)
推荐(0)
摘要:
高德地图 运用场景:先获取本机经纬度 ,从服务端获取周围的小区和停车场的经纬度,通过服务端返回的type赋值给大头针的title来判断是小区还是停车场 1,首先实例化地图 #import <MapKit/MapKit.h> #import <AMapSearchKit/AMapSearchKit.h
阅读全文
posted @ 2017-11-07 10:00
廖利君
阅读(3087)
推荐(0)
摘要:
/** dispatch_async 函数会将传入的block块放入指定的queue里运行。这个函数是异步的,这就意味着它会立即返回而不管block是否运行结束。因此,我们可以在block里运行各种耗时的操作(如网络请求) 而同时不会阻塞UI线程。 **/ /** dispatch_get_glob
阅读全文
posted @ 2017-11-07 09:43
廖利君
阅读(653)
推荐(0)
2017年11月6日
摘要:
1,原理 UILable 不需要定义底部距离,自定义适配 ,让UIView的底部等于UILable的底部距离多少,别忘了设置UILable的属性 代码如下: 定义一个UIView 和 UILable #pragma mark 懒加载 -(UIView *)backView{ if(!_backVie
阅读全文
posted @ 2017-11-06 18:25
廖利君
阅读(362)
推荐(0)
摘要:
引导页: 640 * 960 640 *1136 750 *1334 1080 *1920 启动页: 640 * 960 640 *1136 750 *1334 768 *1024 1242 *2208 1536 *2048 上传appStore所需各分辨率图片: 4 640 * 1136 5.5
阅读全文
posted @ 2017-11-06 14:50
廖利君
阅读(2255)
推荐(0)
2017年11月2日
摘要:
@property(nonatomic,retain) dispatch_source_t timer; __block int timeout = 5; //倒计时时间 自定义 __weak __typeof(&*self)weakself = self; //防止引用,先弱下 if (timeo
阅读全文
posted @ 2017-11-02 15:07
廖利君
阅读(150)
推荐(0)
摘要:
1, [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}]; 系统导航栏title颜色设置 2 iOS判断当前控制器是否正在显示 +(B
阅读全文
posted @ 2017-11-02 10:55
廖利君
阅读(162)
推荐(0)