Coder Social home page Coder Social logo

quanweiwang.github.io's People

Contributors

quanweiwang avatar

Watchers

 avatar  avatar

quanweiwang.github.io's Issues

iOS 获取当前屏幕显示的UIViewController | Coder王权伟の博客

https://www.wangquanwei.com/2017-02-24-1.html

前言接到上级任务,需要给app新增一个检测版本更新的功能(299$账号 不上App Store)。本文不讨论如何实现一个更新检测功能。
设计思路1、新建一个继承NSObject的子类。2、调用网络接口,将服务器版本号与本地版本号对比,得出是否需要弹出更新提示。3、因为最低版本支持iOS8,所以使用iOS8新出的api UIAlertViewController。
那么问题来了,要弹出UIAlert

关于WRNavigationBar在XS、XS_Max、XR导航栏高度异常的修复方案 | 王权伟の博客

https://www.wangquanwei.com/2018-11-01-1.html

OverviewWRNavigationBar 1.2.0版本在iPhone XS Max、iPhone XR上会出现导航栏高度异常的问题。
导航栏异常的原因以下代码只判断了iPhone X设备,所以在真机环境下iPhone XR、iPhone XS、iPhone XS Max会出现导航栏高度异常的问题,但作者在模拟器设备时对设备宽高做了判断,因此模拟器下iPhone XS是正常的。

iOS 爱奇艺客户端多个UITabBar的几种技术实现 | 王权伟の博客

https://www.wangquanwei.com/2018-12-07-1.html

Overview本文将讲解实现类似爱奇艺iOS客户端泡泡UI的几种实现以及几种实现可能出现的坑。
爱奇艺iOS客户端首页底部有5个按钮UITabBar实现,最右边一个是泡泡按钮,点击泡泡按钮将会push到一个带有UITabBar的界面(第一次见到这种设计)。
截止本文发表时爱奇艺iOS客户端版本为V9.10.0,已经改了泡泡界面,不再是push到一个带有UITabBar的界面。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.