You look at an example in the Apple tutorial , they perform this task by performing a number of things, described below, in which case they have a modal representation to enter information that should be added to the data model:
In the modal representation that appears, they create a protocol for processing either rejecting the representation or storing data, and the properties of the type identifier that implements this protocol as delagate, this ensures that any object requires the methods
, , ,
, , ,
, , :
.h
@protocol yourProtocol <NSObject>;
@end
@property(nonatomic, weak) id<yourProtocol> delegate;
modal view.m , , , , , IBAction,
[self.delegate myMethod]
, , .h
@interface viewController() <yourProtocol>
, , , modal view.m, . Apple , , / .., , . , , , .