Comments (3)
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.
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.
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)
- should let user to choose their preferred keyboard type
- shouldn't show searchtableview when there are no filtered contacts HOT 1
- entrytextcell disappears when typing long text in the textfield and moved to new line HOT 1
- Doesnt play nice when contained in a UINavigationController HOT 1
- Adding MBContactPicker to view programatically HOT 2
- How do filter on the "contactTitle" and also "contactSubtitle" HOT 1
- Adding MBContactPicker to tableviewcell HOT 1
- Selected Contacts
- TextField placeholder text is not showing
- iOS8 - Rotation Causes Wrong Offset in Picker
- iOS 8 Support HOT 1
- MBContactPicker should implement UITextInput protocol
- "Unknown type name UIImage" in xcode 6 when implementing model HOT 4
- didEnterCustomText delegate method never called. HOT 1
- Delegate method badly named and not present in protocol HOT 2
- set Propmpt text color
- Fails to compile with Xcode 7.1 HOT 1
- a
- UICollectionViewFlowLayout warning HOT 1
- Unknown type name 'UIImage'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbcontactpicker.