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

2020-08-12  本文已影响0人  IT界的古天乐

[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];

上一篇 下一篇

猜你喜欢

热点阅读