GitHub iconTwitter icon

🍎 iOS

点击浏览器输入框大小按钮,弹出选项中包含翻译选项。

https://www.macrumors.com/how-to/safari-webpage-translation-ios/

gem sources -l #(查看当前ruby的源) 
gem sources --remove https://rubygems.org/ #(移除当前ruby的源) 
gem sources -a https://ruby.taobao.org/ #(设置当前ruby源为淘宝源) 
gem sources -l #(再次查看当前ruby的源)

⚠️ 还没有验证过!

on the top bar

Features > Location > Custom location

你可以从这里得到经纬度

  1. Install and open Xcode
  2. Go to Xcode menu > Open Developer Tool > Simulator
  3. On the Simulator app, go to Hardware menu(on dock) > Device > iOS 13(or latest iOS version) to select and run your desired device
  4. Now you can close Xcode 11, and open Xcode 10.x
  5. You should see your i.e iPhone 11 simulator available in the Device List as the image:

Simulators

refs: https://stackoverflow.com/questions/53631182/how-to-add-simulator-iphone-xs-in-xcode-9-2-also-iphone-xs-max

sudo gem install cocoapods

safe-area指的是真正内容显示区域。safe-area-inset-top是否有数值取决于`webview`,例如浏览器中`safe-area-inset-top`可能就用不到

ios

  1. safe-area-inset-top on `ip7 or below`指的是`status-bar`部分。
  2. safe-area-inset-top on `ipx or above`指的是刘海部分,包括`status-bar`
  3. safe-area-inset-bottom on `ipx or above`指的是下面的全面屏导航条