我在视图控制器中使用了自定义后退按钮。但是它不可见。请帮助我。 这是我的代码:
- (void)viewDidLoad {
[super viewDidLoad];
NSMutableAttributedString * attributedString = [[NSMutableAttributedString alloc] initWithString:@"GDPR Privacy Policy"];
[attributedString addAttribute: NSLinkAttributeName value: @"https://privacypolicies.com/privacy/view/f5904d8b8bf9b0064592688552be71bc" range: NSMakeRange(0, attributedString.length)];
self.lbl.attributedText = attributedString;
self.Background_View.layer.cornerRadius = 10;
self.Background_View.layer.borderWidth = 1;
self.Background_View.layer.borderColor = [UIColor blackColor].CGColor;
self.navigationItem.leftItemsSupplementBackButton = YES;
[StaticHelper setLocalizedBackButtonForViewController:self];
// Do any additional setup after loading the view.
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)back_action_btn:(id)sender
{
[self.navigationController popViewControllerAnimated:YES];
}