Giter VIP home page Giter VIP logo

ios-tips-tricks's People

Stargazers

 avatar

Watchers

 avatar

ios-tips-tricks's Issues

记录一个在iOS开发中遇到的网络请求403错误

公司的iOS客户端用的是一个域名来访问测试服的接口,但是最近在iOS和后端都没有更改网络访问配置的情况下出现了访问所有的接口都报403错误。一开始怀疑是安装了阿里云的安骑士服务,网络请求被拦截,卸载安骑士问题依旧;后来怀疑https证书失效的问题,发现测试服就没有使用https,直接是http,排除https证书失效的问题;偶然直接访问那个域名然后出现了阿里云提示的域名没有备案的提醒,所以403问题的原因是域名没有备案被阿里云拒绝了请求。直接更改iOS项目中的域名为测试服的IP问题解决。

XCode常用快捷键整理备忘

Command + Shift + f 全局文字搜索
Command + Shift + o 搜索文件
Command + Shift + 0 打开开发文档
Control+6 搜索当前文件的property和method(键入方法/变量名+Enter跳转)
Control+5 同一文件夹下的文件切换
Control + Command + up .h和.m文件的切换
Control + Command + left(right) 打开文件的切换
Command + R 运行app
Command + B 编译app
Command + Shift + K 清理工程
Option + 点击 快速查看帮助文档
Command + 0 打开左侧面板
Command + Option +0 打开关闭右侧面板
Command + E 搜索选中的内容

XCode开发环境以及插件配置

更改单击和双击鼠标打开文件的方式

image

快捷键的调整修改

image

常用插件安装

很多常用的操作XCode并没有快捷键,所以要借助插件实现,使用的插件有
xTextHandler、EasyCode-Xcode
BackLight、BBUncrustifyPlugin、FastStub、FuzzyAutoComplete、KSImageNamed、Peckham、XcodeKit
其中xTextHandler和EasyCode可以在AppStore下载
https://github.com/tib/awesome-xcode-extensions
其他插件通过Alcatraz安装
http://alcatraz.io/
XCode8安装插件unsign
https://github.com/inket/update_xcode_plugins
image
image

利用系统键盘快捷键对XCode快捷键进行修改

在XCode的Key Bindings对快捷键进行修改发现很多快捷键不能编辑,难以忍受,然后去找教程改XCode快捷键的配置文件,发现配置文件中并没有设置键位绑定,无法更改绑定的快捷键。下午在Github上一个插件的issue中作者说插件的命令可以通过系统键盘快捷键设置绑定才恍然大悟。几乎所有的app都可以通过这种方式设置快捷键,非常便捷。
image

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.