GithubHelp home page GithubHelp logo

yyiosinstructions's Introduction

YYIOSInstructions

ios日常积累,以后慢慢加

积累内容

1. 国际化

步骤(文件名对应,别写错了):
1. 新建文件Localizable.strings(新建 -> ios -> Resource -> Strings file)
2. 选择Project -> info -> Localizations -> add -> 勾选Localizable.strings文件,完成,添加所需语言
3. 在对应语中文件下,填写相关健值对文件: "key" = "string(对应语种)";
4. 使用string方式:NSLocalizedString(key, nil);
5. "应用名"的国际化请查看文件InfoPlist.strings(其他文件中设置无效)

2. Tabbar+Navigation结构

3. 自定义可点击、滑动的tab

tabDemo

4. ActionSheet(类似微博的ActionSheet)

ActionSheet

5. Polygon:可以转动的多边形

1. numberOfSides:多边形的边数
2. rotateNum:每次旋转时转动的角个数

Polygon

6. 传感器的使用

涉及的内容有以下几部分,详细的说明请看:IOS + 传感器的使用(加速计、陀螺仪、计步器等)

1. 光线强弱检
2. 距离传感器
3. 计步器
4. 加速计
5. 陀螺仪
6. 磁力计

SensorDemo


yyiosinstructions's People

Contributors

yaoyaox avatar

Watchers

 avatar

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.