TNV架构下,部分旋转这个功能,实现起来比较蛋疼,给一个目前的方法。
1、自定义TabBar:
extension C4MVTTabBarController: UITabBarControllerDelegate {
func tabBarControllerSupportedInterfaceOrientations(_ tabBarController: UITabBarController) -> UIInterfaceOrientationMask {[......]
TNV架构下,部分旋转这个功能,实现起来比较蛋疼,给一个目前的方法。
1、自定义TabBar:
extension C4MVTTabBarController: UITabBarControllerDelegate {
func tabBarControllerSupportedInterfaceOrientations(_ tabBarController: UITabBarController) -> UIInterfaceOrientationMask {[......]
https://developer.apple.com/design/tips/[......]
安卓中,如果隐藏了,那么在布局中是不会再占位的。
iOS则默认无法做到这一点,导致很多复杂布局时候很蛋疼,可以这么解决:
添加一个宽度/高度为0的约束,不激活
隐藏时候,激活一下。
[......]
技术渣苹果又搞事情,具体传送门见:http://stackoverflow.com/questions/43074652/ios-10-3-nsstrikethroughstyleattributename-is-not-rendered-if-applied-to-a-sub
解决方案,增加如下代码:
[[NSAttributedString alloc] initWithString:text attributes:@{NSStrikethroughStyleAttributeNa[......]
jwt,对于多端登录,修改密码等的解决方案
传送门 http://stackoverflow.com/questions/28759590/best-practices-to-invalidate-jwt-while-changing-passwords-and-logout-in-node-js
Proposed solution Personally, this is how I'd approach it...user authenticates, issu[......]