ios - Xcode beta 7.0 Cannot link to unwind segue -


i running through swift tutorial using foodtracker application. @ step of "implement navigation" under "working table views." stuck @ step need control-drag save button exit button of mealviewcontroller modal popup. storyboard ui not let me drag onto exit button. have researched quite bit online, , signs point unwind function exists in mealtableviewcontroller.swift. suggested function signature not correct. however, have quadruple verified correct , in right spot. in fact, downloaded sample project end of step, , copied/pasted entire mealtableviewcontroller. still unable link exit button using control-drag. works fine in downloaded example, not in mine. @ point, i'm in middle of doing diffs on every file in project compared downloaded one. far, same!

am missing required enabled?

also, 1 more thing double checked, make sure modal source view linked mealtableviewcontroller class.

here code in mealtableviewcontroller.swift linked view calling modal popup

@ibaction func unwindtomeallist(sender: uistoryboardsegue) {     if let sourceviewcontroller = sender.sourceviewcontroller as? mealviewcontroller, meal = sourceviewcontroller.meal {         // add new meal item.         let newindexpath = nsindexpath(forrow: meals.count, insection: 0)         meals.append(meal)         tableview.insertrowsatindexpaths([newindexpath], withrowanimation: .bottom)     } } 

(using xcode version 7.0 beta 7a121i) tutorial page on: https://developer.apple.com/library/prerelease/ios/referencelibrary/gettingstarted/developiosappsswift/lesson8.html#//apple_ref/doc/uid/tp40015214-ch16-sw1

thanks,

paul

  1. ctrl-click "exit" button once.

  2. on menu appeared drag empty dot (next "unwindtomeallist") save button , select "action".

i had to: 1. ctrl-click "save" 2. drag referencing outlet savebutton

you can download project @ end of lesson , ctrl-click "exit" or "save" button , compare project!


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -