ezescaruli / ESFeedbackViewController

iOS library to show a feedback screen within an application.
MIT License
12 stars 4 forks source link

Ability to present different initial screen/message. #9

Open markst opened 8 years ago

markst commented 8 years ago

Since our current app uses two different states - customer & supplier. We'd like to be able to present two different feedback routes. As a customer the initial feedback screen is acknowledgment of their completed order. However as a Supplier we'd like to present a message thanking them for providing service...

markst commented 8 years ago

I've modified the Feedback storyboard & am using it as follows:

UIStoryboard * feedbackStoryboard = [UIStoryboard storyboardWithName:@"UserFeedback"
                                                              bundle:[NSBundle mainBundle]];
UIViewController * vc = [feedbackStoryboard instantiateInitialViewController];
[vc.view autoSetDimension:ALDimensionWidth toSize:280.0];

GFPopup * popup = [GFPopup popupWithContentView:vc.view];
[popup setRootViewController:vc];
[popup show];
markst commented 8 years ago

For now I could create two different storyboards & instantiate the one I'd like to use...