美文网首页
设置导航栏返回按钮的大小

设置导航栏返回按钮的大小

作者: IT界的古天乐 | 来源:发表于2020-08-12 13:07 被阅读0次

[btn.widthAnchor constraintEqualToConstant:25].active = YES;

[btn.heightAnchor constraintEqualToConstant:25].active = YES;

UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithCustomView:btn];

[items addObject:item]; 

self.navigationItem.leftBarButtonItems = items;

模态跳转

QDCAddressBookViewController *vcer = [[QDCAddressBookViewController alloc] init];    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:vcer];    nav.modalPresentationStyle = UIModalPresentationFullScreen;

[selfpresentViewController:nav animated:YEScompletion:nil];

相关文章

网友评论

      本文标题:设置导航栏返回按钮的大小

      本文链接:https://www.haomeiwen.com/subject/pripdktx.html