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
/// The Medium artcile, discussing the approach | |
/// https://medium.com/@euginedubinin/swift-useful-autoclosure-when-presenting-uialertviewcontroller-b592d1643a50#.kx0fuqm1x | |
final class NoteViewController: UIViewController { | |
// ... set up target-action for an Edit UIButton somewhere here ... | |
private dynamic func handleEditButton() { | |
presentEditConfirmationDialog(onEdit: self.editArticle(), | |
onCancel: () ) /* assuming you have nothing to do upon cancellation */ |
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
/* | |
The layout (notice how button is 50% on top of the collection view | |
while still added to the ContainerView) | |
|----------------------------------------------------| | |
| ContainerView | | |
| ------------------------------------------------ | | |
| | CollectionView | | | |
| | ___________ | | | |
| | | | | | |
OlderNewer