UITransitionView - NEW Question - +rep involved

Discussion in 'iOS Development' started by gojohnnyboi, May 6, 2008.

  1. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    Ok guys, so heres what i have for my transitionview:



    Code:
    	transView = [[UITransitionView alloc] initWithFrame: rect];
    	[transView setDelegate:self];
    	[mainView addSubview: transView];
    So, obviously, thats not hard....


    i declared it in applicationDidFinishLaunching, but its a global variable(in my header file), but my problem is...


    i can call

    Code:
    [transView transition:1 fromView:mainView toView:viewTwo];
    and bam, transitions as soon as the app launches! but my problem is calling from a different function!

    i need possibly a delegate(if that's what i need) to call this, because when i call it normally, my app crashes!!!!
  2. C0DeR_4_liFe

    C0DeR_4_liFe New Member

    Joined:
    Mar 3, 2008
    Messages:
    132
    Likes Received:
    10
    Device:
    iPod touch
    [transView transition:1 fromView:mainView toView:viewTwo];
    [transView transition:2 fromView:viewTwo toView:mainView];
    [transView transition:3 fromView:viewTwo toView:viewThree];

    Get the jist?
  3. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55

    dude. i know how to do trnasitions, but in objc you cant call something from a different function unless you have a delegate for it.
  4. C0DeR_4_liFe

    C0DeR_4_liFe New Member

    Joined:
    Mar 3, 2008
    Messages:
    132
    Likes Received:
    10
    Device:
    iPod touch
    whoops i thought this was in jiggy section! : P
  5. SkylarEC

    SkylarEC Super Moderator Emeritus Staff Member

    Joined:
    Sep 19, 2007
    Messages:
    6,642
    Likes Received:
    129
    I gave you the exact code to do what you want in the last thread you posted. So did Optimo. If you're not going to read, don't ask for help.

Share This Page