¡@

Home 

2014/10/15 ¤U¤È 10:03:30

iphone Programming Glossary: addexercise

Getting an NSInvalidArguementException error

http://stackoverflow.com/questions/5815549/getting-an-nsinvalidarguementexception-error

reason ' __NSCFDictionary controllerWillChangeContent unrecognized selector sent to instance 0x1ba1b0' method void addExercise if managedObjectContext nil managedObjectContext CurlAppDelegate UIApplication sharedApplication delegate managedObjectContext.. @ Exercise inManagedObjectContext managedObjectContext exercise.name selectedExercise NSLog @ addExercise theSelectedRoutine @ theSelectedRoutine theSelectedRoutine addRoutineToExercisesObject exercise if managedObjectContext.. addRoutineToExercisesObject exercise if managedObjectContext save error Handle the error. NSLog @ @ error NSLog @ addExercise theSelectedRoutine @ theSelectedRoutine self.routineTableView reloadData Here is full code @implementation RoutineDayTableViewController..

How to pass object on modal view's dismissal

http://stackoverflow.com/questions/7962519/how-to-pass-object-on-modal-views-dismissal

nav topViewController routineDayTableViewController.muscleURL self.muscleURL routineDayTableViewController addExercise self.parentViewController dismissModalViewControllerAnimated YES Hierarchy of VC RoutineDayTableViewController presents.. then pushes to child table view which dismisses back to RoutineDayTableViewController. Edit void addExercise PFObject exerciseInRoutine PFObject alloc initWithClassName @ exerciseInRoutine exerciseInRoutine setObject self.selectedExercise.. specificExerciseTableViewController didSelectSpecificExerciseWithURL NSURL exerciseURL self addExercise For an example of this in practice in a video see 00 30 00 min mark in WWDC 2011 Video Introducing Interface Builder Storyboarding..