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.
zoom animation using animation with block based methods in Ipad
I just realized that in ios 4.0, usage in this fashion is not recommended and animations using block based methods is recommended..
I tried looking for any sort of example which would give me a hint to get the zooming effect I need using the block based methods but I have not been able to find any...
It would be great if anyone could help me out in this...
Thank you for the quick reply.. I kind of figured out how to use animation using block based methods.. however, I am unable to figure out where I can add the "Zoom" effect similar to the one I used.
I usually used to add this following line to get a zooming effect
[UIView beginAnimations:@\"Zoom\" context:NULL];
however in the animate using blocks I am not able to find out where to add this effect..
smithdale87;325418 said:
This thread has an example of how to use the blocks.
Thank you for the link.. The problem is the way they are creating the animation is not recommended in Ios 4.0 and it is said that that type of coding will be depreciated soon... The recommended way is to use animation with block based methods similar to the link that smithdale87 posted but I would like to know how to add the zooming effect...
would have additional effect on my animation in addition to the zooming effect.. whatever value I give for the options: does not seem to affect my animations..
so what happens here is that the table view rotates while the popContents view zooms to position.. I understand that is what will happen since I had given
transitionWithView:self.view
however, how will I be able to add this effect to the popContents view ( the view which zooms to position)... is it possible? I tried
Replies
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like AwesomeI kind of figured out how to use animation using block based methods.. however, I am unable to figure out where I can add the "Zoom" effect similar to the one I used.
I usually used to add this following line to get a zooming effect
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like AwesomeCreating Basic Animations on iPhone | Switch on the Code
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like AwesomeThe problem is the way they are creating the animation is not recommended in Ios 4.0 and it is said that that type of coding will be depreciated soon...
The recommended way is to use animation with block based methods similar to the link that smithdale87 posted but I would like to know how to add the zooming effect...
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like AwesomeApparently "zoom" is just a name and does not do anything( as far as I experimented with it)
Here is how I achieve the effect using animate with block based methods...
[UIView animateWithDuration:0.8 animations:^ { popContents.view.frame = CGRectMake(160, 70, 350, 350);[self.view.superview bringSubviewToFront:self.view];
[self.view.superview addSubview:popContents.view]; }
completion: ^(BOOL finished) {
NSLog(@\"DONE\");
}
];
If I am wrong, please feel free to correct me...
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome[UIView animateWithDuration:0.8 delay:0.0 options: UIViewAnimationTransitionFlipFromLeft animations:^ { popContents.view.frame = CGRectMake(160, 70, 350, 350);[self.view.superview bringSubviewToFront:self.view];
[self.view.superview addSubview:popContents.view]; }
completion: ^(BOOL finished) {
NSLog(@\"DONE\");
}
];
I thought
Would someone be able to help me out in this?
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesomeso what happens here is that the table view rotates while the popContents view zooms to position.. I understand that is what will happen since I had given
however, how will I be able to add this effect to the popContents view ( the view which zooms to position)... is it possible?
I tried
but that does not seem to have any effect...
- Spam
- Abuse
- Troll
0 · Off Topic Insightful Disagree Dislike Like Awesome