-
Notifications
You must be signed in to change notification settings - Fork 576
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not compatible with UISearchDisplayController #35
Comments
I got the same issue and have tried to fix it by getting into I tried to add the - (void)viewDidLoad {
//...
_returnToReferrerView.frame = CGRectMake(0, -44, 320, 44);
_returnToReferrerView.delegate = self;
[self.navigationController.view addSubview:_returnToReferrerView];
//...
}
- (void)displayReferreView {
CGRect frame = self.navigationController.view.frame;
frame.origin.y = 44;
self.navigationController.view.frame = frame;
self.navigationController.navigationBar.frame = CGRectMake(0.0, 0.0, 320.0, 44.0);
[self.navigationController.view bringSubviewToFront:_returnToReferrerView];
} The issue here is that label view is no more So I back to the Bolts' solution: - (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
if (!self.returnToRefererController) {
// fake data
NSURL *url = [NSURL URLWithString:BFURLWithRefererData];
BFAppLink *appLink = [[BFURL URLWithURL:url] appLinkReferer];
// init for display above nav controller
self.returnToRefererController =
[[BFAppLinkReturnToRefererController alloc] initForDisplayAboveNavController:self.navigationController];
[self.returnToRefererController showViewForRefererAppLink:appLink];
return;
}
}
Do you have any ideas ? |
With this context, I cannot figure out the entire story. You first solution should be working, but did you call "[self.returnToRefererController showViewForRefererAppLink:appLink];" ? Here is a working sample shows the minimum steps that make it work. https://github.com/AppLinks/Samples/blob/master/iOS/PrimeNumbersSample/PrimeNumbersSampleApp/PNDefinitionViewController.m |
Closed due to inactivity. |
When the returnToRefererView is shown in a setup with a UINavigationController containing a UITableViewController with a searchBar on top, there are a couple of issues:
To me it looks like it's not a good idea to mess with the navigationBar position!
The text was updated successfully, but these errors were encountered: