01-07-2009, 10:54 AM
#1 (permalink )
Registered Member
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 100
Duplicating Utility Application Template Tutorial
Duplicates the Utility Application template, but does so using a navigation controller. The only problem is notice the right button slides when rotating. If anyone knows how to fix/change that, please let me know. Pretty beginner, though it does show using code to pop a view controller. To see the high definition version, go to vimeo and become a free member.
******** THIS IS OUTDATED *******************
Duplicating Utility Application Template - From Scratch from
James A. Brannan on
Vimeo .
Last edited by jamesbrannan; 07-22-2009 at 11:40 AM .
02-27-2009, 05:45 AM
#2 (permalink )
I'll build your app!
Join Date: Feb 2009
Location: United States
Posts: 404
Nice wallpaper lol.
02-27-2009, 06:08 AM
#3 (permalink )
Registered Member
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 100
Quote:
Originally Posted by
chaseacton
Nice wallpaper lol.
Would look nicer as a book cover sitting on your shelf....
03-28-2009, 04:33 AM
#4 (permalink )
Registered Member
Join Date: Jan 2009
Location: Atlanta
Posts: 368
I thank your wife for not vacuuming, and your baby for not crying this time.
07-22-2009, 11:23 AM
#6 (permalink )
I'll build your app!
Join Date: Feb 2009
Location: United States
Posts: 404
Here's my version of the utility app tutorial complete with sound, code, and the xcode project!
Here is the video:
Flip View Tutorial on Vimeo
Here is the code in case it was too hard to read in the video:
.h file:
Code:
@interface MainViewController : UIViewController {
IBOutlet UIView *secondaryView;
}
- (IBAction)toggleView:(id)sender; //Action for toggle view
- (IBAction)returnView:(id)sender;
@end
.m file:
Code:
//Flips to back when toggle button is pressed
- (IBAction)toggleView:(id)sender {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight
forView:[self view]
cache:YES];
[[self view] addSubview:secondaryView];
[UIView commitAnimations];
}
//Flips to front when "Done" is pressed
- (IBAction)returnView:(id)sender {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft
forView:[self view]
cache:YES];
[secondaryView removeFromSuperview];
[UIView commitAnimations];
}
Here is the finished project:
TutFlip.zip
07-22-2009, 11:39 AM
#7 (permalink )
Registered Member
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 100
You are making things harder then they have to be. Check out the iphone 3.0SDK's Utility project's code. Also, the video above illustrates the easier way to do it. I will have the project's code available online soon. The narrative, though, is part of my upcoming book. Again, the technique my original video shows, and your tutorial shows, works, but isn't required
James A. Brannan
Quote:
Originally Posted by
chaseacton
Here's my version of the utility app tutorial complete with sound, code, and the xcode project!
Here is the video:
Flip View Tutorial on Vimeo
Here is the code in case it was too hard to read in the video:
.h file:
Code:
@interface MainViewController : UIViewController {
IBOutlet UIView *secondaryView;
}
- (IBAction)toggleView:(id)sender; //Action for toggle view
- (IBAction)returnView:(id)sender;
@end
.m file:
Code:
//Flips to back when toggle button is pressed
- (IBAction)toggleView:(id)sender {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight
forView:[self view]
cache:YES];
[[self view] addSubview:secondaryView];
[UIView commitAnimations];
}
//Flips to front when "Done" is pressed
- (IBAction)returnView:(id)sender {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft
forView:[self view]
cache:YES];
[secondaryView removeFromSuperview];
[UIView commitAnimations];
}
Here is the finished project:
TutFlip.zip
09-15-2009, 12:13 PM
#8 (permalink )
Registered Member
Join Date: Aug 2009
Posts: 22
Quote:
Originally Posted by
chaseacton
Here's my version of the utility app tutorial complete with sound, code, and the xcode project!
...
Thanks, I realise it may have been superceded, but a well made, short and concise tutorial.
__________________
Working on : 1st app
Status : PoC working.
iPhone Developer Program enrolled.
Alpha testing in progress....
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
» Advertisements
» Online Users: 392
46 members and 346 guests
b3b0p , bryhardt , CHV , cmezak , DaveM , dkern , Dorald , Elegy , funkyspider , gandohr , Gi-lo , goodcode , gpacheco , gshaviv , hcarsten , HemiMG , iGeorG , JasonR , johnlikesit , JonnyBGoode , KennyChong , Kilby , Meoz , miguel.campiao , mikeyb , mobilesoftware , Mopedhead , Mr Jack , mr.pagu , MrMattMac , msudan , m_kaminsky@yahoo.com , nhdzung , Nuncha , prathumca , scotopia , Seaturkey74 , snowboarderz69 , SPAS , Tambourin , tensaix2j , thadre , ToM , tychop , Varras
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,293
Threads: 39,081
Posts: 171,364
Top Poster: smasher (2,575)
Welcome to our newest member, michael@2label