Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

导航栏设置背景图片的方法没有 #9

Open
dong136279559 opened this issue Jan 31, 2018 · 1 comment
Open

导航栏设置背景图片的方法没有 #9

dong136279559 opened this issue Jan 31, 2018 · 1 comment

Comments

@dong136279559
Copy link

UINavigationBar 想要设置背景图片,但是没有方法,没法使用tintcolor

@seanLee
Copy link

seanLee commented Mar 31, 2018

- (TXSakura2DUIntBlock)tx_sakuraNavigationBarImageWithName:(NSString *)name {
    return ^TXSakura *(NSString *path, NSUInteger state){
        return [self send2DMsgObjectAndIntWithName:name keyPath:path integ:state selTail:@"forBarMetrics:" argType:kTXSakuraArgImage valueBlock:^NSObject *(NSString *keyPath) {
            return  [TXSakuraManager tx_imageWithPath:keyPath];
        }];
    };
}

I add a method like this in TXSakura Class.
It's a lazy way to change image.And you can define more property but not give the const value.

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

No branches or pull requests

2 participants