Skip to content

Instantly share code, notes, and snippets.

@dodikk
Created January 25, 2014 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dodikk/8614138 to your computer and use it in GitHub Desktop.
Save dodikk/8614138 to your computer and use it in GitHub Desktop.
-(IBAction)helpButtonTapped
{
[ self hideAllPopovers ];
__weak SDHomeViewController* weakSelf = self;
SDHelpReportType reportType = static_cast<SDHelpReportType>( self->_chartController.state.chartType );
JFFPerformSegueCallback prepareForSegue_ =^void(UIStoryboardSegue* segue_)
{
SDHelpViewController* helpVC_ = objc_member_of_cast<SDHelpViewController>(segue_.destinationViewController);
helpVC_.reportType = reportType;
helpVC_.helpDelegate = weakSelf;
};
[ self performSegueWithIdentifier: helpIdentifier_
sender: self
callback: prepareForSegue_ ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment