Git Product home page Git Product logo

Comments (3)

brunchboy avatar brunchboy commented on September 26, 2024

Oops, turns out this is just confusion based on the example. I needed to set the tint color on the instance itself, which is possible, though the example seemed to imply it was a class-level property.

from mbcontactpicker.

mhupman avatar mhupman commented on September 26, 2024

UIView.tintColor is a new property in iOS7. If a view doesn't have its own tintColor set, it will traverse up the view hierarchy until it finds a non-default color, otherwise, it falls back to the system default. Thats why setting the tintColor at the MBContactPicker level works even thought we didn't add any special code to do so. See https://developer.apple.com/library/ios/documentation/uikit/reference/uiview_class/UIView/UIView.html#//apple_ref/doc/uid/TP40006816-CH3-SW215 for more info.

You do bring up an interesting point regarding the disabled state, I didn't think about that from a coloring standpoint. Though I feel like your solution is probably the best (just manually change the tintColor after disabling) versus trying to make the picker intelligent about to how to present a disabled "look".

from mbcontactpicker.

brunchboy avatar brunchboy commented on September 26, 2024

Thanks for the link, it is always good to brush up on new features of UIView. And I agree, probably best to leave these appearance choices to the picker user; they may want to set its tintAdjustmentMode to UIViewTintAdjustmentModeDimmed rather than changing the color, for example.

from mbcontactpicker.

Related Issues (20)

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.