Skip to content

Instantly share code, notes, and snippets.

@gothedistance
Created February 15, 2016 10:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gothedistance/98d64d990340d4b1a382 to your computer and use it in GitHub Desktop.
Save gothedistance/98d64d990340d4b1a382 to your computer and use it in GitHub Desktop.
Push CustomViewControler on Eureka Row
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let remind_vc = storyboard.instantiateViewControllerWithIdentifier
("ReminderViewController") as! ReminderViewController
form +++ Section()
<<< ButtonRow("repeat_type") {
$0.title = "繰り返し"
$0.hidden = hiddenCondition
$0.presentationMode = .Show(
controllerProvider: ControllerProvider.Callback {
return remind_vc },
completionCallback: { vc in
vc.navigationController?.popViewControllerAnimated(true) }
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment