Skip to content

Instantly share code, notes, and snippets.

View ilanoh's full-sized avatar

Ilansky ilanoh

  • Hazard - Emmanuel Management
  • Moon
View GitHub Profile
#import "ViewController.h"
@interface ViewController () {
AVAudioRecorder *recorder;
AVAudioPlayer *player;
}
@end
@implementation ViewController
#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;