Created
February 15, 2016 10:05
-
-
Save gothedistance/98d64d990340d4b1a382 to your computer and use it in GitHub Desktop.
Push CustomViewControler on Eureka Row
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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