Giter Site home page Giter Site logo

nicklockwood / viewutils Goto Github PK

View Code? Open in Web Editor NEW
325.0 325.0 53.0 180 KB

ViewUtils is a collection of category methods designed that extend UIView with all the handy little properties and functionality that you always wished were built-in to begin with.

License: Other

Ruby 3.18% Objective-C 96.82%

viewutils's People

Contributors

nicklockwood avatar sendoa avatar wangyandongnx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

viewutils's Issues

Crashes on 64 bit iPhone 5s

Hi, I think there is a problem with 64 bit iPhone 5s platform. It crashes like saying Unrecognized selector sent to instance [uibutton top] as en example. What could be the problem?

Compile error when C++ is enabled

  • (UIView *)viewOfClass:(Class)class;
    class is a keyword in C++, which cause the compile error when C++ is enabled.
    class should be renamed to _class or something else.

nullable

Can we add nullability annotations? I'm specifically thinking of firstViewController, which can return null at unexpected times and has definitely caused crashes in our production app. Example: calling from a UITableViewCell that just scrolled offscreen.

Let me know if a PR would be helpful here.

Category methods on UIView are not prefixed/suffixed

Apple's documentation recommends using a prefix or suffix on all category methods to avoid unknowingly clashing with an existing or future method implementation by the framework that shares the same name.

ViewUtils should add a prefix or suffix to avoid this problem. More reading:

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.