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

Previous, Next, Done button are set to White Color by default ? #54

Closed
bhavya-kothari opened this issue Jul 2, 2014 · 4 comments
Closed
Assignees

Comments

@bhavya-kothari
Copy link

Hi Mohd Iftekhar Qurashi,
I would to congratulate for making such an excellent control.
However when i set color using appearance class.

Previous, Next, Done buttons appears in white color.

I have attached screen shot as follows for the same:

ios_simulator_screen_shot_jul_2__2014__11_11_25_am

AppDelegate.m

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
   if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) {

    [[UINavigationBar appearance]setBarTintColor:[UIColor whiteColor]];
  [[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
    } else {

        [[UINavigationBar appearance]setTintColor:[UIColor whiteColor]];

   }

     [[UINavigationBar appearance]setBackgroundImage:[UIImage  imageNamed:@"invite_friend_notify_bar"] forBarMetrics:UIBarMetricsDefault];


    NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:
                            [UIFont fontWithName:@"Helvetica-Light" size:20],  NSFontAttributeName,
                                [UIColor whiteColor], NSForegroundColorAttributeName, nil];

     [[UINavigationBar appearance] setTitleTextAttributes:attributes];


      [[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
 }
@hackiftekhar
Copy link
Owner

It't adopting UIBarButtonItems tint color which you set.

On Wednesday, July 2, 2014, Bhavya kothari notifications@github.com wrote:

Hi Mohd Iftekhar Qurashi,
I would to congratulate for making such an excellent control.
However when i set color using appearance class.

Previous, Next, Done buttons appears in white color.

I have attached screen shot as follows for the same:

[image: ios_simulator_screen_shot_jul_2__2014__11_11_25_am]
https://cloud.githubusercontent.com/assets/6544244/3452202/45107d52-01ad-11e4-811c-335b2a49519f.png

AppDelegate.m

  • (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
    if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) {

    [[UINavigationBar appearance]setBarTintColor:[UIColor whiteColor]];
    [[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
    } else {

      [[UINavigationBar appearance]setTintColor:[UIColor whiteColor]];
    

    }

    [[UINavigationBar appearance]setBackgroundImage:[UIImage imageNamed:@"invite_friend_notify_bar"] forBarMetrics:UIBarMetricsDefault];

    NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:
    [UIFont fontWithName:@"Helvetica-Light" size:20], NSFontAttributeName,
    [UIColor whiteColor], NSForegroundColorAttributeName, nil];

    [[UINavigationBar appearance] setTitleTextAttributes:attributes];

    [[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
    }


Reply to this email directly or view it on GitHub
#54.

@hackiftekhar
Copy link
Owner

Hey Bhavya,
I fixed this issue.

@bhavya-kothari
Copy link
Author

Thanks for fixing this one instantly

@muhammedkarakul
Copy link

Hi @hackiftekhar i have the same issue. I use 6.5.6 version of IQKeyboardManager via Cocopods. Keyboard toolbar items and cursor color have white tint color. I know issue closed but maybe some development affected this situation. Can you check it?

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

No branches or pull requests

3 participants