Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials

Reply
 
LinkBack Thread Tools Display Modes
Old 01-07-2009, 10:54 AM   #1 (permalink)
Registered Member
 
jamesbrannan's Avatar
 
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 100
Default 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.
jamesbrannan is offline   Reply With Quote
Old 02-27-2009, 05:45 AM   #2 (permalink)
I'll build your app!
 
chaseacton's Avatar
 
Join Date: Feb 2009
Location: United States
Posts: 404
Send a message via AIM to chaseacton
Default

Nice wallpaper lol.
chaseacton is offline   Reply With Quote
Old 02-27-2009, 06:08 AM   #3 (permalink)
Registered Member
 
jamesbrannan's Avatar
 
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 100
Default

Quote:
Originally Posted by chaseacton View Post
Nice wallpaper lol.
Would look nicer as a book cover sitting on your shelf....
jamesbrannan is offline   Reply With Quote
Old 03-28-2009, 04:33 AM   #4 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: Atlanta
Posts: 368
Default

I thank your wife for not vacuuming, and your baby for not crying this time.
funkytaco is offline   Reply With Quote
Old 07-12-2009, 09:01 AM   #5 (permalink)
Registered Member
 
jamesbrannan's Avatar
 
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 100
Default

Quote:
Originally Posted by funkytaco View Post
I thank your wife for not vacuuming, and your baby for not crying this time.
OUTDATED!!!!!

See:

CH9 Duplicating the Utility Application (no sound) from James A. Brannan on Vimeo.

jamesbrannan is offline   Reply With Quote
Old 07-22-2009, 11:23 AM   #6 (permalink)
I'll build your app!
 
chaseacton's Avatar
 
Join Date: Feb 2009
Location: United States
Posts: 404
Send a message via AIM to chaseacton
Default

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
chaseacton is offline   Reply With Quote
Old 07-22-2009, 11:39 AM   #7 (permalink)
Registered Member
 
jamesbrannan's Avatar
 
Join Date: Aug 2008
Location: Gaithersburg, MD
Posts: 100
Default

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 View Post
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
jamesbrannan is offline   Reply With Quote
Old 09-15-2009, 12:13 PM   #8 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 22
Thumbs up

Quote:
Originally Posted by chaseacton View Post
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....
tin pot is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,293
Threads: 39,081
Posts: 171,364
Top Poster: smasher (2,575)
Welcome to our newest member, michael@2label
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:21 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0