Skip to content

Instantly share code, notes, and snippets.

View ilanoh's full-sized avatar

Ilansky ilanoh

  • Hazard - Emmanuel Management
  • Moon
View GitHub Profile
View ViewControler.m
#import "ViewController.h"
@interface ViewController () {
AVAudioRecorder *recorder;
AVAudioPlayer *player;
}
@end
@implementation ViewController
View ViewController.h
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@interface ViewController : UIViewController <AVAudioRecorderDelegate, AVAudioPlayerDelegate>
@property (weak, nonatomic) IBOutlet UIButton *playButton;
- (void)longPressed:(UIGestureRecognizer *)longPress;
- (IBAction)playTapped:(id)sender;