Skip to content

Add dismiss button style option to controller. - #162

Merged
juliensaad merged 2 commits into
masterfrom
feature/add-dismiss-button-style
Oct 10, 2017
Merged

Add dismiss button style option to controller.#162
juliensaad merged 2 commits into
masterfrom
feature/add-dismiss-button-style

Conversation

@juliensaad

Copy link
Copy Markdown
Contributor

No description provided.

@juliensaad
juliensaad requested a review from lapfelix October 10, 2017 19:04
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
self.webViewController.navigationItem.leftBarButtonItem = [self barButtonItemForDismissButtonStyle:self.dismissButtonStyle];
else
self.webViewController.navigationItem.rightBarButtonItem = [self barButtonItemForDismissButtonStyle:self.dismissButtonStyle];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We might want to set the other bar button item to nil ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

And put the cancel button to the left all the time

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good idea, will do!

@juliensaad
juliensaad merged commit 70e87d9 into master Oct 10, 2017
@juliensaad
juliensaad deleted the feature/add-dismiss-button-style branch October 10, 2017 19:13
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