I found the problem. I had subclassed the UITabbarController and I have added a -(void)viewWillAppear
-function where I have put some logic. Unfortunately I forgot to add the [super viewWillAppear:animated]
call inside of that function. Very stupid mistake.
Thanks to rdelmar, who pointed out the possible cause for this in the first comment of my question.