Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Draw This
($0.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-07-2009, 09:19 PM   #7 (permalink)
mr-sk
.38 special tucked
 
Join Date: Apr 2009
Location: Brooklyn, NY
Posts: 133
mr-sk is on a distinguished road
Default

Quote:
you don't have to. if you create them in IB you just need to make sure you have outlets for both of them.
I do.

Quote:
animate frame change to make the view "disappear"
then set the new content in the existing view (which is hidden)
animate another frame change to make the view "appear"
I got this code working:

Quote:
- (void)fadeScreen
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.75];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(finishedFadi ng)];

qTextView.alpha = 0.3;
aTextView.alpha = 0.3;

[UIView commitAnimations];
}


- (void) finishedFading
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.75];

qTextView.alpha = 1.0; seconds
aTextView.alpha = 1.0;

[UIView commitAnimations];
}
Which just does a fade in / fade out. I'll probably try something more difficult in a bit. Thanks for the tips jsd!
mr-sk is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 174,543
Threads: 93,725
Posts: 401,261
Top Poster: BrianSlick (7,954)
Welcome to our newest member, jerrywenwu
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:09 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.