iOS 导航栏自定义view

 self.automaticallyAdjustsScrollViewInsets = YES;
    YHEatTitleView *titleView = [YHEatTitleView createCustomNav:^(UIButton *sender) {
        [self.navigationController popViewControllerAnimated:YES];
    }];
    [titleView.navTitle setText:@"结账"];
    self.navigationItem.titleView = titleView;

你可能感兴趣的:(iOS 导航栏自定义view)