Code Monkey home page Code Monkey logo

Comments (3)

james075 avatar james075 commented on June 15, 2024

I got the same issue and have tried to fix it by getting into BFAppLinkReturnToRefererController and BFAppLinkReturnToRefererView classes but no results.

I tried to add the referrer view to the navigation.view and change its position to be visible:

- (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 touchable, no way to interact with theses buttons.

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;
    }
}
  • [1] after launching the app, all views are well positioned
  • [2] push a view controller then pop to the root, self.view changes origin.y automatically (even if I try to force it).
  • [3] UISearchDisplayController is active.
  • [4] present then dismiss a view controller, I got an empty view (no interaction enabled).

screen shot 2014-07-08 at 12 47 49

Do you have any ideas ?

from bolts-objc.

agener917 avatar agener917 commented on June 15, 2024

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

from bolts-objc.

grantland avatar grantland commented on June 15, 2024

Closed due to inactivity.

from bolts-objc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.