Thứ Hai, 18 tháng 5, 2015

Swift - Stop segue and show alert

I "google" and the following link is helpful:
http://jamesleist.com/ios-swift-tutorial-stop-segue-show-alert-text-box-empty/

Reference: https://developer.apple.com/library/mac/documentation/AppKit/Reference/NSSeguePerforming_Protocol/#//apple_ref/occ/intfm/NSSeguePerforming/shouldPerformSegueWithIdentifier:sender:

Override above function and return false if you want to stop segue.
- Comments

0 nhận xét:

Đăng nhận xét