上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页
摘要: 需求: 现在有一个页面,有A, B, C 3个网络请求。A, B是非必须,C是必须,所有请求完毕之后要刷新tableView。 这里当然可以使用异步并发,每个请求的成功或者失败中刷新tableView。 如果要用信号量来控制呢?顺便复习一遍吧。 信号量(Semaphore)是多线程环境下的一种保护设 阅读全文
posted @ 2020-03-25 11:37 liuw_flexi 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 一 . 用AFHTTPSessionManager中的这个方法 - (NSURLSessionDataTask *)POST:(NSString *)URLString parameters:(id)parameters constructingBodyWithBlock:(void (^)(id 阅读全文
posted @ 2020-03-18 14:43 liuw_flexi 阅读(2872) 评论(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 阅读(4133) 评论(0) 推荐(0) 编辑
摘要: clipsToBounds(UIView)是指视图上的子视图,如果超出父视图的部分就截取掉 masksToBounds(CALayer)却是指视图的图层上的子图层,如果超出父图层的部分就截取掉 阅读全文
posted @ 2020-03-10 16:58 liuw_flexi 阅读(952) 评论(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 阅读(717) 评论(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 阅读(1461) 评论(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 阅读(1524) 评论(0) 推荐(0) 编辑
摘要: heic 格式的照片,传给后台,web端可能无法显示。所以考虑转成jpg 或者png格式。 注意:光改文件的后缀是不行的,还得转一下NSData格式。 CIImage *ciImage = [CIImage imageWithData:imageData]; CIContext *context = 阅读全文
posted @ 2020-03-03 11:24 liuw_flexi 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: https://www.devio.org/2016/07/23/React-Native应用部署-热更新-CodePush最新集成总结/ 集成: npm install -g code-push-cli code-push -v 向code-push服务器注册app code-push app a 阅读全文
posted @ 2020-02-28 11:07 liuw_flexi 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 1. 在全局路径下修改环境变量 vim ~/.bash_profile # Setting PATH for Python 3.6 # The original version is saved in .bash_profile.pysave PATH="/Library/Frameworks/Py 阅读全文
posted @ 2020-02-21 16:58 liuw_flexi 阅读(1918) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页