I am having some troubles with Xcode login with account created through iTunes connect. I have no experience with developer program whatsoever so please help me if you can. 

We have company account and the app on app store. External company is developing it for us. But we wanted to create another app, so my boss, admin on iTunes connect has given me app manager role. After that I have successfully created new app, but I cant get my Xcode to use that apple id as a team one, only personal. Also when I try to login to developer.apple.com it treats me like a regular new user, not like I am in company and my account and apple id has ben created via iTunes connect and asks me to enrol to developer program and I believe pay 99$.

I can see that I do not yet understand the process fully so please if anyone knows, give me some guide on my trouble.

Thanks in advance

EDIT: PROBLEM SOLVED

For anyone with similar problem, invitation in iTunes connect is not enough, you have to get invited to developer team on developer.apple.com.
['https://Stackoverflow.com/questions/36896345', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2683119/']
You can use setTimeout to run a function delayed. Don't forget to store the interval so that you won't get any weird jittering with hovering. 

```
var i;
$('.switch').hover(function() {
        clearInterval(i);
        $(this).find('.avg_words').hide();
        $(this).find('.avg_num').show();
    }, function() {
        clearInterval(i);
        i = setTimeout(function() {
          $(this).find('.avg_num').hide();
          $(this).find('.avg_words').show();
        }.bind(this), 500);
});

```
Try using [setTimeout](https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers/setTimeout):

```
$('.switch').hover(function() {
    $(this).find('.avg_words').hide();
    $(this).find('.avg_num').show();
}, function() {
    var _this = this;
    setTimeout(function() {
        $(_this).find('.avg_num').hide();
        $(_this).find('.avg_words').show();
    }, 1000); //delay in milliseconds, here 1s
});

```

[JSFiddle](https://jsfiddle.net/rjnpy7ge/)