iPhone one title for all view controllers

后端 未结 4 587
天涯浪人
天涯浪人 2021-01-25 00:51

I have an app with tab bar controller (with 4 views controller) and it contains a navigation controller. All of this was create programmatically. My question: Is there a way how

4条回答
  •  孤街浪徒
    2021-01-25 01:08

    For all of you, I think you want to put a log there, and it is to set an image file as the tab bar sub view and set the heights of the view controllers less the tab bar image as

    UIImageView *navImage = [[UIImageView alloc]initWithImage:[UIImage imageNamed:IMG_LOGO]];
    //[navImage setCenter:CGPointMake(160, 21)];
    [navImage setCenter:CGPointMake(160, 21)];
    [self.navigationController.navigationBar addSubview: navImage];
    [navImage release];
    

提交回复
热议问题