Skip to content

Add viewController property.#3

Open
enriquez wants to merge 1 commit into
AquaSupport:masterfrom
enriquez:master
Open

Add viewController property.#3
enriquez wants to merge 1 commit into
AquaSupport:masterfrom
enriquez:master

Conversation

@enriquez

Copy link
Copy Markdown
  • This configures where the document controller is presented from.
  • By default, the document controller is presented from the
    rootViewController's view

I was getting an error in the console about attempting to present the document controller from a view that wasn't part of the hierarchy, and nothing happened after selecting Instagram. This was because I am using AQSInstagramActivity from a modal, and it tries to present from the root view controller's view which is not part of the modal's hierarchy. With this fix, I was able to set the new viewController property to my modal and got it to work again.

- This configures where the document controller is presented from.
- By default, the document controller is presented from the
  rootViewController's view

@interface AQSInstagramActivity : UIActivity

@property (nonatomic, strong) UIViewController *viewController;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be weak reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants