image Audio and Video

view.h

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <AVKit/AVKit.h>
@interface ViewController : UIViewController


@property (strong, nonatomic) IBOutlet UIScrollView *tomSV;
- (IBAction)angryBtn:(id)sender;

- (IBAction)drinkBtn:(id)sender;
- (IBAction)eatBtn:(id)sender;
@property (strong, nonatomic) IBOutlet UIImageView *angryIV;
- (IBAction)fartBtn:(id)sender;
- (IBAction)footLeftBtn:(id)sender;
- (IBAction)footRightBtn:(id)sender;
- (IBAction)happyBtn:(id)sender;
- (IBAction)knockoutBtn:(id)sender;
- (IBAction)listenBtn:(id)sender;
- (IBAction)pieBtn:(id)sender;
- (IBAction)scratchBtn:(id)sender;
- (IBAction)sneezeBtn:(id)sender;
- (IBAction)stomachBtn:(id)sender;
- (IBAction)talkBtn:(id)sender;
- (IBAction)zehBtn:(id)sender;
@property (strong, nonatomic) IBOutlet UIScrollView *AudioSV;
- (IBAction)baleBtn:(id)sender;
- (IBAction)heloBtn:(id)sender;
- (IBAction)charuseelaBtn:(id)sender;
- (IBAction)followBtn:(id)sender;
- (IBAction)dheevaraBtn:(id)sender;
- (IBAction)seethakalamBtn:(id)sender;
- (IBAction)juctionBtn:(id)sender;
@property AVPlayer *avplay;

@property (strong, nonatomic) IBOutlet UIScrollView *videoSV;
- (IBAction)baleVBtn:(id)sender;
- (IBAction)IdiotsVBtn:(id)sender;
- (IBAction)rabhasaVBtn:(id)sender;
- (IBAction)shivamVBtn:(id)sender;
- (IBAction)kancheVBtn:(id)sender;



@end

view.m

#import "ViewController.h"
#import "secondViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self.tomSV setScrollEnabled:YES];
    [self.tomSV setContentSize:CGSizeMake(2700, 0)];
    [self.AudioSV setScrollEnabled:YES];
    [self.AudioSV setContentSize:CGSizeMake(2000, 0)];
    
    [self.videoSV setScrollEnabled:YES];
    [self.videoSV setContentSize:CGSizeMake(1500, 0)];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



- (IBAction)angryBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        
        NSArray * images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_angry0001.png"],[UIImage imageNamed:@"cat_angry0002.png"],[UIImage imageNamed:@"cat_angry0003.png"],[UIImage imageNamed:@"cat_angry0004.png"],[UIImage imageNamed:@"cat_angry0005.png"],[UIImage imageNamed:@"cat_angry0006.png"],[UIImage imageNamed:@"cat_angry0007.png"],[UIImage imageNamed:@"cat_angry0008.png"],[UIImage imageNamed:@"cat_angry0009.png"],[UIImage imageNamed:@"cat_angry0010.png"],[UIImage imageNamed:@"cat_angry0011.png"],[UIImage imageNamed:@"cat_angry0012.png"],[UIImage imageNamed:@"cat_angry0013.png"],[UIImage imageNamed:@"cat_angry0014.png"],[UIImage imageNamed:@"cat_angry0015.png"],[UIImage imageNamed:@"cat_angry0016.png"],[UIImage imageNamed:@"cat_angry0017.png"],[UIImage imageNamed:@"cat_angry0018.png"],[UIImage imageNamed:@"cat_angry0019.png"],[UIImage imageNamed:@"cat_angry0020.png"],[UIImage imageNamed:@"cat_angry0021.png"],[UIImage imageNamed:@"cat_angry0022.png"],[UIImage imageNamed:@"cat_angry0023.png"],[UIImage imageNamed:@"cat_angry0024.png"],[UIImage imageNamed:@"cat_angry0025.png"],nil];
        
        
        svc.secondIV.animationImages=images;
//        svc.secondIV.animationDuration=3;
//        [svc.secondIV startAnimating];
        
    }];

}

- (IBAction)drinkBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_drink0000.png"],[UIImage imageNamed:@"cat_drink0001.png"],[UIImage imageNamed:@"cat_drink0002.png"],[UIImage imageNamed:@"cat_drink0003.png"],[UIImage imageNamed:@"cat_drink0004.png"],[UIImage imageNamed:@"cat_drink0005.png"],[UIImage imageNamed:@"cat_drink0006.png"],[UIImage imageNamed:@"cat_drink0007.png"],[UIImage imageNamed:@"cat_drink0008.png"],[UIImage imageNamed:@"cat_drink0009.png"],[UIImage imageNamed:@"cat_drink0010.png"],[UIImage imageNamed:@"cat_drink0011.png"],[UIImage imageNamed:@"cat_drink0012.png"],[UIImage imageNamed:@"cat_drink0013.png"],[UIImage imageNamed:@"cat_drink0014.png"],[UIImage imageNamed:@"cat_drink0015.png"],[UIImage imageNamed:@"cat_drink0016.png"],[UIImage imageNamed:@"cat_drink0017.png"],[UIImage imageNamed:@"cat_drink0018.png"],[UIImage imageNamed:@"cat_drink0019.png"],[UIImage imageNamed:@"cat_drink0020.png"],[UIImage imageNamed:@"cat_drink0021.png"],[UIImage imageNamed:@"cat_drink0022.png"],[UIImage imageNamed:@"cat_drink0023.png"],[UIImage imageNamed:@"cat_drink0024.png"],[UIImage imageNamed:@"cat_drink0025.png"],[UIImage imageNamed:@"cat_drink0026.png"],[UIImage imageNamed:@"cat_drink0027.png"],[UIImage imageNamed:@"cat_drink0028.png"],[UIImage imageNamed:@"cat_drink0029.png"],[UIImage imageNamed:@"cat_drink0030.png"],[UIImage imageNamed:@"cat_drink0031.png"],[UIImage imageNamed:@"cat_drink0032.png"],[UIImage imageNamed:@"cat_drink0033.png"],[UIImage imageNamed:@"cat_drink0034.png"],[UIImage imageNamed:@"cat_drink0035.png"],[UIImage imageNamed:@"cat_drink0036.png"],[UIImage imageNamed:@"cat_drink0037.png"],[UIImage imageNamed:@"cat_drink0038.png"],[UIImage imageNamed:@"cat_drink0039.png"],[UIImage imageNamed:@"cat_drink0040.png"],[UIImage imageNamed:@"cat_drink0041.png"],[UIImage imageNamed:@"cat_drink0042.png"],[UIImage imageNamed:@"cat_drink0043.png"],[UIImage imageNamed:@"cat_drink0044.png"],[UIImage imageNamed:@"cat_drink0045.png"],[UIImage imageNamed:@"cat_drink0046.png"],[UIImage imageNamed:@"cat_drink0047.png"],[UIImage imageNamed:@"cat_drink0048.png"],[UIImage imageNamed:@"cat_drink0049.png"],[UIImage imageNamed:@"cat_drink0050.png"],[UIImage imageNamed:@"cat_drink0051.png"],[UIImage imageNamed:@"cat_drink0052.png"],[UIImage imageNamed:@"cat_drink0053.png"],[UIImage imageNamed:@"cat_drink0054.png"],[UIImage imageNamed:@"cat_drink0055.png"],[UIImage imageNamed:@"cat_drink0056.png"],[UIImage imageNamed:@"cat_drink0057.png"],[UIImage imageNamed:@"cat_drink0058.png"],[UIImage imageNamed:@"cat_drink0059.png"],[UIImage imageNamed:@"cat_drink0060.png"],[UIImage imageNamed:@"cat_drink0061.png"],[UIImage imageNamed:@"cat_drink0062.png"],[UIImage imageNamed:@"cat_drink0063.png"],[UIImage imageNamed:@"cat_drink0064.png"],[UIImage imageNamed:@"cat_drink0065.png"],[UIImage imageNamed:@"cat_drink0066.png"],[UIImage imageNamed:@"cat_drink0067.png"],[UIImage imageNamed:@"cat_drink0068.png"],[UIImage imageNamed:@"cat_drink0069.png"],[UIImage imageNamed:@"cat_drink0070.png"],[UIImage imageNamed:@"cat_drink0071.png"],[UIImage imageNamed:@"cat_drink0072.png"],[UIImage imageNamed:@"cat_drink0073.png"],[UIImage imageNamed:@"cat_drink0074.png"],[UIImage imageNamed:@"cat_drink0075.png"],[UIImage imageNamed:@"cat_drink0076.png"],[UIImage imageNamed:@"cat_drink0077.png"],[UIImage imageNamed:@"cat_drink0078.png"],[UIImage imageNamed:@"cat_drink0079.png"],[UIImage imageNamed:@"cat_drink0080.png"],nil];
        svc.secondIV.animationImages=images;
//        svc.secondIV.animationDuration=2;
//        [svc.secondIV startAnimating];
    }];
}

- (IBAction)eatBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_eat0000.png"],[UIImage imageNamed:@"cat_eat0001.png"],[UIImage imageNamed:@"cat_eat0002.png"],[UIImage imageNamed:@"cat_eat0003.png"],[UIImage imageNamed:@"cat_eat0004.png"],[UIImage imageNamed:@"cat_eat0005.png"],[UIImage imageNamed:@"cat_eat0006.png"],[UIImage imageNamed:@"cat_eat0007.png"],[UIImage imageNamed:@"cat_eat0008.png"],[UIImage imageNamed:@"cat_eat0009.png"],[UIImage imageNamed:@"cat_eat0010.png"],[UIImage imageNamed:@"cat_eat0011.png"],[UIImage imageNamed:@"cat_eat0012.png"],[UIImage imageNamed:@"cat_eat0013.png"],[UIImage imageNamed:@"cat_eat0014.png"],[UIImage imageNamed:@"cat_eat0015.png"],[UIImage imageNamed:@"cat_eat0016.png"],[UIImage imageNamed:@"cat_eat0017.png"],[UIImage imageNamed:@"cat_eat0018.png"],[UIImage imageNamed:@"cat_eat0019.png"],[UIImage imageNamed:@"cat_eat0020.png"],[UIImage imageNamed:@"cat_eat0021.png"],[UIImage imageNamed:@"cat_eat0022.png"],[UIImage imageNamed:@"cat_eat0023.png"],[UIImage imageNamed:@"cat_eat0024.png"],[UIImage imageNamed:@"cat_eat0025.png"],[UIImage imageNamed:@"cat_eat0026.png"],[UIImage imageNamed:@"cat_eat0027.png"],[UIImage imageNamed:@"cat_eat0028.png"],[UIImage imageNamed:@"cat_eat0029.png"],[UIImage imageNamed:@"cat_eat0030.png"],[UIImage imageNamed:@"cat_eat0031.png"],[UIImage imageNamed:@"cat_eat0032.png"],[UIImage imageNamed:@"cat_eat0033.png"],[UIImage imageNamed:@"cat_eat0034.png"],[UIImage imageNamed:@"cat_eat0035.png"],[UIImage imageNamed:@"cat_eat0036.png"],[UIImage imageNamed:@"cat_eat0037.png"],[UIImage imageNamed:@"cat_eat0038.png"],[UIImage imageNamed:@"cat_eat0039.png"], nil];
        svc.secondIV.animationImages=images;
//        svc.secondIV.animationDuration=3;
//        [svc.secondIV startAnimating];
        
    }];
}
- (IBAction)fartBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_fart0000.png"],[UIImage imageNamed:@"cat_fart0001.png"],[UIImage imageNamed:@"cat_fart0002.png"],[UIImage imageNamed:@"cat_fart0003.png"],[UIImage imageNamed:@"cat_fart0004.png"],[UIImage imageNamed:@"cat_fart0005.png"],[UIImage imageNamed:@"cat_fart0006.png"],[UIImage imageNamed:@"cat_fart0007.png"],[UIImage imageNamed:@"cat_fart0008.png"],[UIImage imageNamed:@"cat_fart0009.png"],[UIImage imageNamed:@"cat_fart0010.png"],[UIImage imageNamed:@"cat_fart0011.png"],[UIImage imageNamed:@"cat_fart0012.png"],[UIImage imageNamed:@"cat_fart0013.png"],[UIImage imageNamed:@"cat_fart0014.png"],[UIImage imageNamed:@"cat_fart0015.png"],[UIImage imageNamed:@"cat_fart0016.png"],[UIImage imageNamed:@"cat_fart0017.png"],[UIImage imageNamed:@"cat_fart0018.png"],[UIImage imageNamed:@"cat_fart0019.png"],[UIImage imageNamed:@"cat_fart0020.png"],[UIImage imageNamed:@"cat_fart0021.png"],[UIImage imageNamed:@"cat_fart0022.png"],[UIImage imageNamed:@"cat_fart0023.png"],[UIImage imageNamed:@"cat_fart0024.png"],[UIImage imageNamed:@"cat_fart0025.png"],[UIImage imageNamed:@"cat_fart0026.png"],[UIImage imageNamed:@"cat_fart0027.png"], nil];
        svc.secondIV.animationImages=images;
//        svc.secondIV.animationDuration=3;
//        [svc.secondIV startAnimating];
    }];
}

- (IBAction)footLeftBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_foot_left0000.png"],[UIImage imageNamed:@"cat_foot_left0001.png"],[UIImage imageNamed:@"cat_foot_left0002.png"],[UIImage imageNamed:@"cat_foot_left0003.png"],[UIImage imageNamed:@"cat_foot_left0004.png"],[UIImage imageNamed:@"cat_foot_left0005.png"],[UIImage imageNamed:@"cat_foot_left0006.png"],[UIImage imageNamed:@"cat_foot_left0007.png"],[UIImage imageNamed:@"cat_foot_left0008.png"],[UIImage imageNamed:@"cat_foot_left0009.png"],[UIImage imageNamed:@"cat_foot_left0010.png"],[UIImage imageNamed:@"cat_foot_left0011.png"],[UIImage imageNamed:@"cat_foot_left0012.png"],[UIImage imageNamed:@"cat_foot_left0013.png"],[UIImage imageNamed:@"cat_foot_left0014.png"],[UIImage imageNamed:@"cat_foot_left0015.png"],[UIImage imageNamed:@"cat_foot_left0016.png"],[UIImage imageNamed:@"cat_foot_left0017.png"],[UIImage imageNamed:@"cat_foot_left0018.png"],[UIImage imageNamed:@"cat_foot_left0019.png"],[UIImage imageNamed:@"cat_foot_left0020.png"],[UIImage imageNamed:@"cat_foot_left0021.png"],[UIImage imageNamed:@"cat_foot_left0022.png"],[UIImage imageNamed:@"cat_foot_left0023.png"],[UIImage imageNamed:@"cat_foot_left0024.png"],[UIImage imageNamed:@"cat_foot_left0025.png"],[UIImage imageNamed:@"cat_foot_left0026.png"],[UIImage imageNamed:@"cat_foot_left0027.png"],[UIImage imageNamed:@"cat_foot_left0028.png"],[UIImage imageNamed:@"cat_foot_left0029.png"], nil];
       // svc.secondIV.animationDuration=3;
       svc.secondIV.animationImages=images;
//        [svc.secondIV startAnimating];
    }];
}

- (IBAction)footRightBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_foot_right0000.png"],[UIImage imageNamed:@"cat_foot_right0001.png"],[UIImage imageNamed:@"cat_foot_right0002.png"],[UIImage imageNamed:@"cat_foot_right0003.png"],[UIImage imageNamed:@"cat_foot_right0004.png"],[UIImage imageNamed:@"cat_foot_right0005.png"],[UIImage imageNamed:@"cat_foot_right0006.png"],[UIImage imageNamed:@"cat_foot_right0007.png"],[UIImage imageNamed:@"cat_foot_right0008.png"],[UIImage imageNamed:@"cat_foot_right0009.png"],[UIImage imageNamed:@"cat_foot_right0010.png"],[UIImage imageNamed:@"cat_foot_right0011.png"],[UIImage imageNamed:@"cat_foot_right0012.png"],[UIImage imageNamed:@"cat_foot_right0013.png"],[UIImage imageNamed:@"cat_foot_right0014.png"],[UIImage imageNamed:@"cat_foot_right0015.png"],[UIImage imageNamed:@"cat_foot_right0016.png"],[UIImage imageNamed:@"cat_foot_right0017.png"],[UIImage imageNamed:@"cat_foot_right0018.png"],[UIImage imageNamed:@"cat_foot_right0019.png"],[UIImage imageNamed:@"cat_foot_right0020.png"],[UIImage imageNamed:@"cat_foot_right0021.png"],[UIImage imageNamed:@"cat_foot_right0022.png"],[UIImage imageNamed:@"cat_foot_right0023.png"],[UIImage imageNamed:@"cat_foot_right0024.png"],[UIImage imageNamed:@"cat_foot_right0025.png"],[UIImage imageNamed:@"cat_foot_right0026.png"],[UIImage imageNamed:@"cat_foot_right0027.png"],[UIImage imageNamed:@"cat_foot_right0028.png"],[UIImage imageNamed:@"cat_foot_right0029.png"], nil];
        svc.secondIV.animationImages=images;
//        svc.secondIV.animationDuration=3;
//        [svc.secondIV startAnimating];
    }];
}

- (IBAction)happyBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_happy0000.png"],[UIImage imageNamed:@"cat_happy0001.png"],[UIImage imageNamed:@"cat_happy0002.png"],[UIImage imageNamed:@"cat_happy0003.png"],[UIImage imageNamed:@"cat_happy0004.png"],[UIImage imageNamed:@"cat_happy0005.png"],[UIImage imageNamed:@"cat_happy0006.png"],[UIImage imageNamed:@"cat_happy0007.png"],[UIImage imageNamed:@"cat_happy0008.png"],[UIImage imageNamed:@"cat_happy0009.png"],[UIImage imageNamed:@"cat_happy0010.png"],[UIImage imageNamed:@"cat_happy0011.png"],[UIImage imageNamed:@"cat_happy0012.png"],[UIImage imageNamed:@"cat_happy0013.png"],[UIImage imageNamed:@"cat_happy0014.png"],[UIImage imageNamed:@"cat_happy0015.png"],[UIImage imageNamed:@"cat_happy0016.png"],[UIImage imageNamed:@"cat_happy0017.png"],[UIImage imageNamed:@"cat_happy0018.png"],[UIImage imageNamed:@"cat_happy0019.png"],[UIImage imageNamed:@"cat_happy0020.png"],[UIImage imageNamed:@"cat_happy0021.png"],[UIImage imageNamed:@"cat_happy0022.png"],[UIImage imageNamed:@"cat_happy0023.png"],[UIImage imageNamed:@"cat_happy0024.png"],[UIImage imageNamed:@"cat_happy0025.png"],[UIImage imageNamed:@"cat_happy0026.png"],[UIImage imageNamed:@"cat_happy0027.png"],[UIImage imageNamed:@"cat_happy0028.png"],[UIImage imageNamed:@"cat_happy0029.png"], nil];
     //   svc.secondIV.animationDuration=3;
        svc.secondIV.animationImages=images;
//        [svc.secondIV startAnimating];
    }];
}

- (IBAction)knockoutBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_knockout0000.png"],[UIImage imageNamed:@"cat_knockout0001.png"],[UIImage imageNamed:@"cat_knockout0002.png"],[UIImage imageNamed:@"cat_knockout0003.png"],[UIImage imageNamed:@"cat_knockout0004.png"],[UIImage imageNamed:@"cat_knockout0005.png"],[UIImage imageNamed:@"cat_knockout0006.png"],[UIImage imageNamed:@"cat_knockout0007.png"],[UIImage imageNamed:@"cat_knockout0008.png"],[UIImage imageNamed:@"cat_knockout0009.png"],[UIImage imageNamed:@"cat_knockout0010.png"],[UIImage imageNamed:@"cat_knockout0011.png"],[UIImage imageNamed:@"cat_knockout0012.png"],[UIImage imageNamed:@"cat_knockout0013.png"],[UIImage imageNamed:@"cat_knockout0014.png"],[UIImage imageNamed:@"cat_knockout0015.png"],[UIImage imageNamed:@"cat_knockout0016.png"],[UIImage imageNamed:@"cat_knockout0017.png"],[UIImage imageNamed:@"cat_knockout0018.png"],[UIImage imageNamed:@"cat_knockout0019.png"],[UIImage imageNamed:@"cat_knockout0020.png"],[UIImage imageNamed:@"cat_knockout0021.png"],[UIImage imageNamed:@"cat_knockout0022.png"],[UIImage imageNamed:@"cat_knockout0023.png"],[UIImage imageNamed:@"cat_knockout0024.png"],[UIImage imageNamed:@"cat_knockout0025.png"],[UIImage imageNamed:@"cat_knockout0026.png"],[UIImage imageNamed:@"cat_knockout0027.png"],[UIImage imageNamed:@"cat_knockout0028.png"],[UIImage imageNamed:@"cat_knockout0029.png"],[UIImage imageNamed:@"cat_knockout0030.png"],[UIImage imageNamed:@"cat_knockout0031.png"],[UIImage imageNamed:@"cat_knockout0032.png"],[UIImage imageNamed:@"cat_knockout0033.png"],[UIImage imageNamed:@"cat_knockout0034.png"],[UIImage imageNamed:@"cat_knockout0035.png"],[UIImage imageNamed:@"cat_knockout0036.png"],[UIImage imageNamed:@"cat_knockout0037.png"],[UIImage imageNamed:@"cat_knockout0038.png"],[UIImage imageNamed:@"cat_knockout0039.png"],[UIImage imageNamed:@"cat_knockout0040.png"],[UIImage imageNamed:@"cat_knockout0041.png"],[UIImage imageNamed:@"cat_knockout0042.png"],[UIImage imageNamed:@"cat_knockout0043.png"],[UIImage imageNamed:@"cat_knockout0044.png"],[UIImage imageNamed:@"cat_knockout0045.png"],[UIImage imageNamed:@"cat_knockout0046.png"],[UIImage imageNamed:@"cat_knockout0047.png"],[UIImage imageNamed:@"cat_knockout0048.png"],[UIImage imageNamed:@"cat_knockout0049.png"],[UIImage imageNamed:@"cat_knockout0050.png"],[UIImage imageNamed:@"cat_knockout0051.png"],[UIImage imageNamed:@"cat_knockout0052.png"],[UIImage imageNamed:@"cat_knockout0053.png"],[UIImage imageNamed:@"cat_knockout0054.png"],[UIImage imageNamed:@"cat_knockout0055.png"],[UIImage imageNamed:@"cat_knockout0056.png"],[UIImage imageNamed:@"cat_knockout0057.png"],[UIImage imageNamed:@"cat_knockout0058.png"],[UIImage imageNamed:@"cat_knockout0059.png"],[UIImage imageNamed:@"cat_knockout0060.png"],[UIImage imageNamed:@"cat_knockout0061.png"],[UIImage imageNamed:@"cat_knockout0062.png"],[UIImage imageNamed:@"cat_knockout0063.png"],[UIImage imageNamed:@"cat_knockout0064.png"],[UIImage imageNamed:@"cat_knockout0065.png"],[UIImage imageNamed:@"cat_knockout0066.png"],[UIImage imageNamed:@"cat_knockout0067.png"],[UIImage imageNamed:@"cat_knockout0068.png"],[UIImage imageNamed:@"cat_knockout0069.png"],[UIImage imageNamed:@"cat_knockout0070.png"],[UIImage imageNamed:@"cat_knockout0071.png"],[UIImage imageNamed:@"cat_knockout0072.png"],[UIImage imageNamed:@"cat_knockout0073.png"],[UIImage imageNamed:@"cat_knockout0074.png"],[UIImage imageNamed:@"cat_knockout0075.png"],[UIImage imageNamed:@"cat_knockout0076.png"],[UIImage imageNamed:@"cat_knockout0077.png"],[UIImage imageNamed:@"cat_knockout0078.png"],[UIImage imageNamed:@"cat_knockout0079.png"],[UIImage imageNamed:@"cat_knockout0080.png"], nil];
        svc.secondIV.animationImages=images;
//        svc.secondIV.animationDuration=3;
//        [svc.secondIV startAnimating];
    }];
}

- (IBAction)listenBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_listen0000.png"],[UIImage imageNamed:@"cat_listen0001.png"],[UIImage imageNamed:@"cat_listen0002.png"],[UIImage imageNamed:@"cat_listen0003.png"],[UIImage imageNamed:@"cat_listen0004.png"],[UIImage imageNamed:@"cat_listen0005.png"],[UIImage imageNamed:@"cat_listen0006.png"],[UIImage imageNamed:@"cat_listen0007.png"],[UIImage imageNamed:@"cat_listen0008.png"],[UIImage imageNamed:@"cat_listen0009.png"],[UIImage imageNamed:@"cat_listen0010.png"],[UIImage imageNamed:@"cat_listen0011.png"], nil];
    //    svc.secondIV.animationDuration=3;
        svc.secondIV.animationImages=images;
//        [svc.secondIV startAnimating];
        
    }];
}

- (IBAction)pieBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
[self presentViewController:svc animated:YES completion:^{
    NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_pie0000.png"],[UIImage imageNamed:@"cat_pie0001.png"],[UIImage imageNamed:@"cat_pie0002.png"],[UIImage imageNamed:@"cat_pie0003.png"],[UIImage imageNamed:@"cat_pie0004.png"],[UIImage imageNamed:@"cat_pie0005.png"],[UIImage imageNamed:@"cat_pie0006.png"],[UIImage imageNamed:@"cat_pie0007.png"],[UIImage imageNamed:@"cat_pie0008.png"],[UIImage imageNamed:@"cat_pie0009.png"],[UIImage imageNamed:@"cat_pie0010.png"],[UIImage imageNamed:@"cat_pie0011.png"],[UIImage imageNamed:@"cat_pie0012.png"],[UIImage imageNamed:@"cat_pie0013.png"],[UIImage imageNamed:@"cat_pie0014.png"],[UIImage imageNamed:@"cat_pie0015.png"],[UIImage imageNamed:@"cat_pie0016.png"],[UIImage imageNamed:@"cat_pie0017.png"],[UIImage imageNamed:@"cat_pie0018.png"],[UIImage imageNamed:@"cat_pie0019.png"],[UIImage imageNamed:@"cat_pie0020.png"],[UIImage imageNamed:@"cat_pie0021.png"],[UIImage imageNamed:@"cat_pie0022.png"], nil];
    svc.secondIV.animationImages=images;
//    svc.secondIV.animationDuration=3;
//    [svc.secondIV startAnimating];
}];
}

- (IBAction)scratchBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_scratch0000.png"],[UIImage imageNamed:@"cat_scratch0001.png"],[UIImage imageNamed:@"cat_scratch0002.png"],[UIImage imageNamed:@"cat_scratch0003.png"],[UIImage imageNamed:@"cat_scratch0004.png"],[UIImage imageNamed:@"cat_scratch0005.png"],[UIImage imageNamed:@"cat_scratch0006.png"],[UIImage imageNamed:@"cat_scratch0007.png"],[UIImage imageNamed:@"cat_scratch0008.png"],[UIImage imageNamed:@"cat_scratch0009.png"],[UIImage imageNamed:@"cat_scratch0010.png"],[UIImage imageNamed:@"cat_scratch0011.png"],[UIImage imageNamed:@"cat_scratch0012.png"],[UIImage imageNamed:@"cat_scratch0013.png"],[UIImage imageNamed:@"cat_scratch0014.png"],[UIImage imageNamed:@"cat_scratch0015.png"],[UIImage imageNamed:@"cat_scratch0016.png"],[UIImage imageNamed:@"cat_scratch0017.png"],[UIImage imageNamed:@"cat_scratch0018.png"],[UIImage imageNamed:@"cat_scratch0019.png"],[UIImage imageNamed:@"cat_scratch0020.png"],[UIImage imageNamed:@"cat_scratch0021.png"],[UIImage imageNamed:@"cat_scratch0022.png"],[UIImage imageNamed:@"cat_scratch0023.png"],[UIImage imageNamed:@"cat_scratch0024.png"],[UIImage imageNamed:@"cat_scratch0025.png"],[UIImage imageNamed:@"cat_scratch0026.png"],[UIImage imageNamed:@"cat_scratch0027.png"],[UIImage imageNamed:@"cat_scratch0028.png"],[UIImage imageNamed:@"cat_scratch0029.png"],[UIImage imageNamed:@"cat_scratch0030.png"],[UIImage imageNamed:@"cat_scratch0031.png"],[UIImage imageNamed:@"cat_scratch0032.png"],[UIImage imageNamed:@"cat_scratch0033.png"],[UIImage imageNamed:@"cat_scratch0034.png"],[UIImage imageNamed:@"cat_scratch0035.png"],[UIImage imageNamed:@"cat_scratch0036.png"],[UIImage imageNamed:@"cat_scratch0037.png"],[UIImage imageNamed:@"cat_scratch0038.png"],[UIImage imageNamed:@"cat_scratch0039.png"],[UIImage imageNamed:@"cat_scratch0040.png"],[UIImage imageNamed:@"cat_scratch0041.png"],[UIImage imageNamed:@"cat_scratch0042.png"],[UIImage imageNamed:@"cat_scratch0043.png"],[UIImage imageNamed:@"cat_scratch0044.png"],[UIImage imageNamed:@"cat_scratch0045.png"],[UIImage imageNamed:@"cat_scratch0046.png"],[UIImage imageNamed:@"cat_scratch0047.png"],[UIImage imageNamed:@"cat_scratch0048.png"],[UIImage imageNamed:@"cat_scratch0049.png"],[UIImage imageNamed:@"cat_scratch0050.png"],[UIImage imageNamed:@"cat_scratch0051.png"],[UIImage imageNamed:@"cat_scratch0052.png"],[UIImage imageNamed:@"cat_scratch0053.png"],[UIImage imageNamed:@"cat_scratch0054.png"],[UIImage imageNamed:@"cat_scratch0055.png"], nil];
    //    svc.secondIV.animationDuration=3;
        svc.secondIV.animationImages=images;
//        [svc.secondIV startAnimating];
    }];
}

- (IBAction)sneezeBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_sneeze0000.png"],[UIImage imageNamed:@"cat_sneeze0001.png"],[UIImage imageNamed:@"cat_sneeze0002.png"],[UIImage imageNamed:@"cat_sneeze0003.png"],[UIImage imageNamed:@"cat_sneeze0004.png"],[UIImage imageNamed:@"cat_sneeze0005.png"],[UIImage imageNamed:@"cat_sneeze0006.png"],[UIImage imageNamed:@"cat_sneeze0007.png"],[UIImage imageNamed:@"cat_sneeze0008.png"],[UIImage imageNamed:@"cat_sneeze0009.png"],[UIImage imageNamed:@"cat_sneeze0010.png"],[UIImage imageNamed:@"cat_sneeze0011.png"],[UIImage imageNamed:@"cat_sneeze0012.png"],[UIImage imageNamed:@"cat_sneeze0013.png"], nil];
        svc.secondIV.animationImages=images;
//        svc.secondIV.animationDuration=3;
//        [svc.secondIV startAnimating];
    }];
}

- (IBAction)stomachBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_stomach0000.png"],[UIImage imageNamed:@"cat_stomach0001.png"],[UIImage imageNamed:@"cat_stomach0002.png"],[UIImage imageNamed:@"cat_stomach0003.png"],[UIImage imageNamed:@"cat_stomach0004.png"],[UIImage imageNamed:@"cat_stomach0005.png"],[UIImage imageNamed:@"cat_stomach0006.png"],[UIImage imageNamed:@"cat_stomach0007.png"],[UIImage imageNamed:@"cat_stomach0008.png"],[UIImage imageNamed:@"cat_stomach0009.png"],[UIImage imageNamed:@"cat_stomach0010.png"],[UIImage imageNamed:@"cat_stomach0011.png"],[UIImage imageNamed:@"cat_stomach0012.png"],[UIImage imageNamed:@"cat_stomach0013.png"],[UIImage imageNamed:@"cat_stomach0014.png"],[UIImage imageNamed:@"cat_stomach0015.png"],[UIImage imageNamed:@"cat_stomach0016.png"],[UIImage imageNamed:@"cat_stomach0017.png"],[UIImage imageNamed:@"cat_stomach0018.png"],[UIImage imageNamed:@"cat_stomach0019.png"],[UIImage imageNamed:@"cat_stomach0020.png"],[UIImage imageNamed:@"cat_stomach0021.png"],[UIImage imageNamed:@"cat_stomach0022.png"],[UIImage imageNamed:@"cat_stomach0023.png"],[UIImage imageNamed:@"cat_stomach0024.png"],[UIImage imageNamed:@"cat_stomach0025.png"],[UIImage imageNamed:@"cat_stomach0026.png"],[UIImage imageNamed:@"cat_stomach0027.png"],[UIImage imageNamed:@"cat_stomach0028.png"],[UIImage imageNamed:@"cat_stomach0029.png"],[UIImage imageNamed:@"cat_stomach0030.png"],[UIImage imageNamed:@"cat_stomach0031.png"],[UIImage imageNamed:@"cat_stomach0032.png"],[UIImage imageNamed:@"cat_stomach0033.png"], nil];
     //   svc.secondIV.animationDuration=3;
        svc.secondIV.animationImages=images;
//        [svc.secondIV startAnimating];
    }];
}

- (IBAction)talkBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_talk0000.png"],[UIImage imageNamed:@"cat_talk0001.png"],[UIImage imageNamed:@"cat_talk0002.png"],[UIImage imageNamed:@"cat_talk0003.png"],[UIImage imageNamed:@"cat_talk0004.png"],[UIImage imageNamed:@"cat_talk0005.png"],[UIImage imageNamed:@"cat_talk0006.png"],[UIImage imageNamed:@"cat_talk0007.png"],[UIImage imageNamed:@"cat_talk0008.png"],[UIImage imageNamed:@"cat_talk0009.png"],[UIImage imageNamed:@"cat_talk0010.png"],[UIImage imageNamed:@"cat_talk0011.png"],[UIImage imageNamed:@"cat_talk0012.png"],[UIImage imageNamed:@"cat_talk0013.png"],[UIImage imageNamed:@"cat_talk0014.png"],[UIImage imageNamed:@"cat_talk0015.png"], nil];
        svc.secondIV.animationImages=images;
//        svc.secondIV.animationDuration=3;
//        [svc.secondIV startAnimating];
    }];
    
}

- (IBAction)zehBtn:(id)sender {
    secondViewController *svc=[self.storyboard instantiateViewControllerWithIdentifier:@"SVC"];
    [self presentViewController:svc animated:YES completion:^{
        NSArray *images=[NSArray arrayWithObjects:[UIImage imageNamed:@"cat_zeh0000.png"],[UIImage imageNamed:@"cat_zeh0001.png"],[UIImage imageNamed:@"cat_zeh0002.png"],[UIImage imageNamed:@"cat_zeh0003.png"],[UIImage imageNamed:@"cat_zeh0004.png"],[UIImage imageNamed:@"cat_zeh0005.png"],[UIImage imageNamed:@"cat_zeh0006.png"],[UIImage imageNamed:@"cat_zeh0007.png"],[UIImage imageNamed:@"cat_zeh0008.png"],[UIImage imageNamed:@"cat_zeh0009.png"],[UIImage imageNamed:@"cat_zeh0010.png"],[UIImage imageNamed:@"cat_zeh0011.png"],[UIImage imageNamed:@"cat_zeh0012.png"],[UIImage imageNamed:@"cat_zeh0013.png"],[UIImage imageNamed:@"cat_zeh0014.png"],[UIImage imageNamed:@"cat_zeh0015.png"],[UIImage imageNamed:@"cat_zeh0016.png"],[UIImage imageNamed:@"cat_zeh0017.png"],[UIImage imageNamed:@"cat_zeh0018.png"],[UIImage imageNamed:@"cat_zeh0019.png"],[UIImage imageNamed:@"cat_zeh0020.png"],[UIImage imageNamed:@"cat_zeh0021.png"],[UIImage imageNamed:@"cat_zeh0022.png"],[UIImage imageNamed:@"cat_zeh0023.png"],[UIImage imageNamed:@"cat_zeh0024.png"],[UIImage imageNamed:@"cat_zeh0025.png"],[UIImage imageNamed:@"cat_zeh0026.png"],[UIImage imageNamed:@"cat_zeh0027.png"],[UIImage imageNamed:@"cat_zeh0028.png"],[UIImage imageNamed:@"cat_zeh0029.png"],[UIImage imageNamed:@"cat_zeh0030.png"], nil];
      //  svc.secondIV.animationDuration=3;
        svc.secondIV.animationImages=images;
//        [svc.secondIV startAnimating];
    }];
}

- (IBAction)baleBtn:(id)sender {
    
    NSString *audio=[[NSBundle mainBundle]pathForResource:@"bale" ofType:@"mp3"];
    self.avplay=[AVPlayer playerWithURL:[NSURL fileURLWithPath:audio]];
    [self.avplay play];

    
}

- (IBAction)heloBtn:(id)sender {
    NSString *audio=[[NSBundle mainBundle]pathForResource:@"Hello" ofType:@"mp3"];
    self.avplay=[AVPlayer playerWithURL:[NSURL fileURLWithPath:audio]];
    [self.avplay play];
}

- (IBAction)charuseelaBtn:(id)sender {
    NSString *audio=[[NSBundle mainBundle]pathForResource:@"Charuseela" ofType:@"mp3"];
    self.avplay=[AVPlayer playerWithURL:[NSURL fileURLWithPath:audio]];
    [self.avplay play];
}

- (IBAction)followBtn:(id)sender {
    NSString *audio=[[NSBundle mainBundle]pathForResource:@"FollowFollow" ofType:@"mp3"];
    self.avplay=[AVPlayer playerWithURL:[NSURL fileURLWithPath:audio]];
    [self.avplay play];
}

- (IBAction)dheevaraBtn:(id)sender {
    NSString *audio=[[NSBundle mainBundle]pathForResource:@"Dheevara" ofType:@"mp3"];
    self.avplay = [AVPlayer playerWithURL:[NSURL fileURLWithPath:audio]];
    [self.avplay play];
}

- (IBAction)seethakalamBtn:(id)sender {
    NSString *audio=[[NSBundle mainBundle]pathForResource:@"Seethakaalam" ofType:@"mp3"];
    self.avplay = [AVPlayer playerWithURL:[NSURL fileURLWithPath:audio]];
    [self.avplay play];
}

- (IBAction)juctionBtn:(id)sender {
    NSString *audio=[[NSBundle mainBundle]pathForResource:@"JunctionLo" ofType:@"mp3"];
    self.avplay=[AVPlayer playerWithURL:[NSURL fileURLWithPath:audio]];
    [self.avplay play];
}
- (IBAction)baleVBtn:(id)sender {
    NSString *video=[[NSBundle mainBundle]pathForResource:@"Bhale" ofType:@"mp4"];
    self.avplay=[AVPlayer playerWithURL:[NSURL fileURLWithPath:video]];
    AVPlayerViewController *videoPlay=[[AVPlayerViewController alloc]init];
    videoPlay.player = self.avplay;
    [self.avplay play];
    [self presentViewController:videoPlay animated:YES completion:^{
        
    }];
}

- (IBAction)IdiotsVBtn:(id)sender {
    NSString *video=[[NSBundle mainBundle]pathForResource:@"3Idiots" ofType:@"mp4"];
    self.avplay=[AVPlayer playerWithURL:[NSURL fileURLWithPath:video]];
    AVPlayerViewController *videoPlay=[[AVPlayerViewController alloc]init];
    videoPlay.player = self.avplay;
    [self.avplay play];
    [self presentViewController:videoPlay animated:YES completion:nil];
}

- (IBAction)rabhasaVBtn:(id)sender {
    NSString *video=[[NSBundle mainBundle]pathForResource:@"Aadhi" ofType:@"mp4"];
    self.avplay=[AVPlayer playerWithURL:[NSURL fileURLWithPath:video]];
    AVPlayerViewController *videoPlay=[[AVPlayerViewController alloc]init];
    videoPlay.player=self.avplay;
    [self.avplay play];
    [self presentViewController:videoPlay animated:YES completion:nil];
}

- (IBAction)shivamVBtn:(id)sender {
    NSString *video=[[NSBundle mainBundle]pathForResource:@"Andamaina" ofType:@"mp4"];
    self.avplay=[AVPlayer playerWithURL:[NSURL fileURLWithPath:video]];
    AVPlayerViewController *videoPlay=[[AVPlayerViewController alloc]init];
    videoPlay.player=self.avplay;
    [self.avplay play];
    [self presentViewController:videoPlay animated:YES completion:nil];
}

- (IBAction)kancheVBtn:(id)sender {
    
    NSString *video=[[NSBundle mainBundle]pathForResource:@"Dil" ofType:@"mp4"];
    self.avplay=[AVPlayer playerWithURL:[NSURL fileURLWithPath:video]];
    AVPlayerViewController *videoPlay=[[AVPlayerViewController alloc]init];
    videoPlay.player=self.avplay;
    [self.avplay play];
    [self presentViewController:videoPlay animated:YES completion:nil];
}
@end
Previous
Next Post »