Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Google Sign In with OpenID
Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.

How to animate when no reference to target view?

Hi,

In my iOS5 app for iPhone, I have something like this

AppDelegate
ivar ViewController1
ivar ViewController2


ViewController1
ivar view1
ivar button1
IBAction animateToView


ViewController2
ivar view2


Now I want to animate from view1 from viewcontroller1 to view2 from viewcontroller2 by pushing a button in viewcontroller1.
Bu I do not have a reference to the view2 to the viewcontroller2 in viewcontroler1.

If I hook the button to an action/target and use block based animation in it
this one >>
[UIView transitionFromView:<#(UIView *)#>
toView:<#(UIView *)#>
duration:<#(NSTimeInterval)#>
options:<#(UIViewAnimationOptions)#>
completion:<#^(BOOL finished)completion#>]
I am unable to fill in the toView: because of those missing references.

What would you recommend? IS it even good to solve thi by action target?

Thanks.
Post edited by Web Dev on
iOS and Web App Developer working at Cygnis Media

Replies

Sign In or Register to comment.