CocoaPods trunk is moving to be read-only. Read more on the blog, there are 12 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Mar 2017 |
Maintained by kmk.
To run the example project, clone the repo, and run pod install from the Example directory first.
Property Definition
@property(nonatomic, strong) SimpleRecorder *recorder;self.recorder = [[SimpleRecorder alloc] init];
self.recorder.delegate = self;
self.recorder.soundName = @"record";
}
- (IBAction)actionRecord:(id)sender {
[self.recorder startRecord];
}
- (IBAction)actionPlay:(id)sender {
[self.recorder startPlay];
}
- (IBAction)actionStop:(id)sender {
if ([self.recorder isRecording]) {
[self.recorder stopRecord];
}
[self.recorder stopPlay];
}Delegate Methods
@protocol SimpleRecorderDelegate<NSObject>
@optional
- (void) recorderStartRecord:(NSString *)soundName;
- (void) recorderFinishedRecord:(NSString *)soundName;
- (void) recorderStartPlay:(NSString *)soundName;
- (void) recorderFinishedPlay:(NSString *)soundName;
@endSimpleRecorder is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SimpleRecorder"KoStudio, [email protected]
SimpleRecorder is available under the MIT license. See the LICENSE file for more info.