Skip to content
This repository has been archived by the owner on Nov 30, 2019. It is now read-only.

Remove UINavigationBar shadowImage trying to send [UIImage new] when select setShadowImage: #34

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

yeahdongcn
Copy link

"UINavigationBar": {
"backgroundImage:default": "nav_bg",
"shadowImage": "",
}

When trying to set custom background image and remove the default one point height shadow image, I have to set a UIImage instance without content == [UIImage new], but in - (BOOL)convertValue:(id)value imageHandler:(void (^)(UIImage *))imageHandler codeHandler:(void (^)(NSString *))codeHandler; if the value is @"", [UIImage imageNamed:value] will return nil so the shadow image can not be removed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant