On Tue, Jun 30, 2009 at 5:50 PM, Beth Freeman<[email protected]> wrote:
> DesignMeditationsAppDelegate:
>
> - (void)applicationDidFinishLaunching:(UIApplication *)application {
>
>
> // Override point for customization after application launch
>
> [window addSubview:meditationViewController.view];
>
> [window addSubview:aboutViewController.view];
If you want to swap between subviews, why are you adding both of them?
>
> [window bringSubviewToFront:meditationViewController.view];
>
> [window makeKeyAndVisible];
>
> }
>
>
> - (void) switchViews:(UIView *)aView {
>
> [window bringSubviewToFront:aView];
>
> [window makeKeyAndVisible];
This is unnecessary... seems like evidence of cargo-cult programming.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]