Welcome to iPadForums.net Guest - Click Here to Register

ipad application problem in gesture recognization and uiview swap effect

This is a discussion on ipad application problem in gesture recognization and uiview swap effect within the iPad Development forums, part of the iPad App Store category; i tried following code for giving gesture recognizer with swipe effect - (void)viewDidLoad { [self.view addGestureRecognizer:swipeRecognizer];*/ UISwipeGestureRecognizer* rightSwipeGestureRecognizer = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeRight ] autorelease]; ...

Register with iPad Forums
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    iPF Noob
    Member #
    172901
    Join Date
    Mar 2012
    Location
    Ahmedabad
    Posts
    7

    ipad application problem in gesture recognization and uiview swap effect

    i tried following code for giving gesture recognizer with swipe effect
    - (void)viewDidLoad
    {
    [self.view addGestureRecognizer:swipeRecognizer];*/
    UISwipeGestureRecognizer* rightSwipeGestureRecognizer = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeRight] autorelease];

    rightSwipeGestureRecognizer.direction = UISwipeGestureRecognizerDirectionRight;
    [self.view addGestureRecognizer:rightSwipeGestureRecognizer];


    UISwipeGestureRecognizer* leftSwipeGestureRecognizer = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeLeft] autorelease];

    leftSwipeGestureRecognizer.direction = UISwipeGestureRecognizerDirectionLeft;
    [self.view addGestureRecognizer:leftSwipeGestureRecognizer];
    }
    -(IBAction)swipeRightUIGestureRecognizer *)sender{
    [self PlayClickSound];
    [self removeViews];
    videoView *videoview1 = [[videoView alloc]
    initWithNibName:nil bundle:nil];
    // videoview1.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
    videoview1.contentViewLangId=contentViewLangId;
    videoview1.topicId=topicId;
    NSLog(@"Video : %@",topicId);
    [self presentModalViewController:videoview1 animated:YES];
    CATransition *animation = [CATransition animation];
    [animation setDelegate:self];
    // [animation setType:@"oglFlip"];
    [animation setType:kCAValueFunctionScale];
    //[animation setSubtype:direction];
    [animation setDuration:1.0];
    [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear]];
    //return animation;

    }
    -(IBAction)swipeLeftUIGestureRecognizer *)sender{
    [self PlayClickSound];
    [self removeViews];
    linkView *linkview1 = [[linkView alloc]
    initWithNibName:nil bundle:nil];
    //linkview1.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
    linkview1.contentViewLangId=contentViewLangId;
    linkview1.topicId=topicId;
    NSLog(@"Quiz : %@",topicId);
    CATransition *transition = [CATransition animation];
    // [transition.durat];
    transition.duration = 0.75;

    transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear];
    transition.type = kCATransitionFromLeft;
    transition.subtype = kCATransitionFromLeft;
    transitioning = YES;


    transition.delegate = self;


    [self presentModalViewController:linkview1 animated:transitioning];


    }

  2. Ads


  3. #2
    iPF Noob
    Member #
    172901
    Join Date
    Mar 2012
    Location
    Ahmedabad
    Posts
    7

    swipe effect for different view

    i want to swipe different viewcontroller class from left to right which has different xib i tried using storyboard and scrollview,pageview controller but it does not work properlly...........

  4. #3
    iPF Noob
    Member #
    172901
    Join Date
    Mar 2012
    Location
    Ahmedabad
    Posts
    7

    Unhappy swipe effct for viewcontrollers in ipad application

    i use scrollview in my project for swap and scroll different viewcontroller in scrollview i added four different pages in my first view controller i display one text file and one video file in second view controller video will play and in third view controller i m display text file and in fourth quiz will display but when i scroll pages video will play in background and all pages loaded at a time in scrollview

  5. #4
    Super Moderator
    Member #
    13576
    Liked
    743 times
    Join Date
    Aug 2010
    Location
    Western NY state (USA)
    Posts
    9,267
    Hi. Unfortunately, I don't understand what you are trying to do. Hopefully, someone will be along to help soon...

    I am posting to ask that you please keep any discussion on this issue to one thread (you had made several other posts about this topic). I have merged them all into this post here. Please keep all updates, discussion and further updates about this issue to this thread.

    Having several posts scattered about fragments the conversation and makes it difficult to follow. Not to mention - its also against the rules. So, please, stick to this thread. Thanks for your understanding.

    Marilyn
    Moderator, iPadForums.net
    64GB WiFi/4G iPad3 (iOS 6.1.2; jailbroken w/evasi0n) & Black 32GB iPhone 5 (iOS 6.1.2, jailbroken w/evasi0n)
    * * * PLEASE READ * * * Forum Rules * * * Hacking Section Rules * * * PLEASE READ * * *


Home | Forum | Active Topics | What's New

Advertisements

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Similar Threads

  1. Problem with sound effect not leaving screen
    By Freespirit7777 in forum iPad Help
    Replies: 1
    Last Post: 03-12-2012, 02:16 PM
  2. Urgent- Problem with ipad application
    By bayoor in forum iPad Help
    Replies: 4
    Last Post: 10-11-2011, 03:26 PM
  3. IPad2 Application Icons Problem
    By gdoiron in forum iPad Apps
    Replies: 2
    Last Post: 08-02-2011, 03:15 PM
  4. Problem Using ipad for web based application
    By Kcollura in forum iPad General Discussions
    Replies: 7
    Last Post: 01-25-2011, 02:52 PM
  5. Application problem.
    By Than Lwin in forum iPad Apps
    Replies: 0
    Last Post: 11-10-2010, 09:26 PM

Search tags for this page

app problems on ipad
,

apply animations to ui view

,
ios 5 ipad 3 app uiview swipe from right bug
,
ios 5 uiswipegesturerecognizer storyboard
,
ios dev swap gestures
,
swap effect from one view to another in ipad
,
swipe uiview ipad
,
uiview swipe ipad
,
xcode storyboard uiswipegesturerecognizer uiswipegesturerecognizerdirectionleft
,
xcode swipe gesture duration
,
xcode swipe gesture storyboard
,
xcode uiswipegesturerecognizer storyboard selector
Click on a term to search for related topics.

Tags for this Thread