Giter Site home page Giter Site logo

wgextension's Introduction

WGExtension

iOS实用工具小合集

使用方法

CocoaPods

pod 'WGExtension'

功能

1. 防止崩溃

使任何对象都可直接调用数组及字典的取值方法, 无需先进行类型判断(主要用于防范后台数据类型混乱).

2. UIView 分类

使得可以直接设置及访问x, y, width, height等属性及判断当前控件是否展示在主窗口等接口. 1.png

3. NSString 分类

提供直接计算出文字总高度等接口. 2.png

4. UILabel 分类

使 UILabel 内文字左右对齐, 再也不用担心因不同 UILabel 中基偶字数不同而无法左右分别对齐的问题了. 3.png

4.png

5.png

6.png

功能还会继续追加和优化, 如在使用过程中有任何问题或更好的建议, 请多多指出, 谢谢!

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.