03 2020 档案

摘要:需求: 现在有一个页面,有A, B, C 3个网络请求。A, B是非必须,C是必须,所有请求完毕之后要刷新tableView。 这里当然可以使用异步并发,每个请求的成功或者失败中刷新tableView。 如果要用信号量来控制呢?顺便复习一遍吧。 信号量(Semaphore)是多线程环境下的一种保护设 阅读全文
posted @ 2020-03-25 11:37 liuw_flexi 阅读(166) 评论(0) 推荐(0) 编辑
摘要:一 . 用AFHTTPSessionManager中的这个方法 - (NSURLSessionDataTask *)POST:(NSString *)URLString parameters:(id)parameters constructingBodyWithBlock:(void (^)(id 阅读全文
posted @ 2020-03-18 14:43 liuw_flexi 阅读(2947) 评论(0) 推荐(0) 编辑
摘要:参考 https://www.jianshu.com/p/d2b0f20e2e96 说的比较全 https://www.jianshu.com/p/35831f573109 解决白边问题 我用的是1242 *2208分辨率的图片,好像其他尺寸会有白边的问题。图片的显示模式用的是Aspect Fill 阅读全文
posted @ 2020-03-16 15:59 liuw_flexi 阅读(4157) 评论(0) 推荐(0) 编辑
摘要:clipsToBounds(UIView)是指视图上的子视图,如果超出父视图的部分就截取掉 masksToBounds(CALayer)却是指视图的图层上的子图层,如果超出父图层的部分就截取掉 阅读全文
posted @ 2020-03-10 16:58 liuw_flexi 阅读(988) 评论(0) 推荐(0) 编辑
摘要:import React, { Component } from 'react'; import { Alert, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import Orientation from 'rea 阅读全文
posted @ 2020-03-10 16:24 liuw_flexi 阅读(731) 评论(0) 推荐(0) 编辑
摘要:安装的依赖和导入模块参考官网 https://reactnavigation.org/docs/nesting-navigators/#navigating-to-a-screen-in-a-nested-navigator 页面跳转用的是 https://reactnavigation.org/d 阅读全文
posted @ 2020-03-09 11:45 liuw_flexi 阅读(1475) 评论(2) 推荐(0) 编辑
摘要:https://github.com/ZipArchive/ZipArchive/issues/519 使用SSZipArchive 注意事项: 4. Add the following GCC_PREPROCESSOR_DEFINITIONS: HAVE_INTTYPES_H HAVE_PKCRY 阅读全文
posted @ 2020-03-06 11:33 liuw_flexi 阅读(1531) 评论(0) 推荐(0) 编辑
摘要:heic 格式的照片,传给后台,web端可能无法显示。所以考虑转成jpg 或者png格式。 注意:光改文件的后缀是不行的,还得转一下NSData格式。 CIImage *ciImage = [CIImage imageWithData:imageData]; CIContext *context = 阅读全文
posted @ 2020-03-03 11:24 liuw_flexi 阅读(1217) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示