Skip to content
This repository was 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
yeahdongcn wants to merge 5 commits intorobertwijas:masterfrom
yeahdongcn:master
Open

Remove UINavigationBar shadowImage trying to send [UIImage new] when select setShadowImage:#34
yeahdongcn wants to merge 5 commits intorobertwijas:masterfrom
yeahdongcn:master

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