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

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

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

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

Reply
 
LinkBack Thread Tools Display Modes
Old 07-05-2011, 03:37 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 17
appcody is on a distinguished road
Question Simple Xcode Question about view based apps and tab based apps; UIAlert Views and Vid

Hi,

I have been working on a project with UIAlert Views and implementing video into the project. I can code these into view based applications, but not in my tab bar based application. The application always crashes with no explanation. Is there a certain rule I have to know? Any help?
Thanks in advance,
appcody is offline   Reply With Quote
Old 07-05-2011, 05:46 PM   #2 (permalink)
Registered Member
 
Join Date: Feb 2011
Posts: 97
Bopols is on a distinguished road
Default

Quote:
Originally Posted by appcody View Post
Hi,

I have been working on a project with UIAlert Views and implementing video into the project. I can code these into view based applications, but not in my tab bar based application. The application always crashes with no explanation. Is there a certain rule I have to know? Any help?
Thanks in advance,
Try to be more specific. Post some code and tell us what's crashing.
Bopols is offline   Reply With Quote
Old 07-06-2011, 01:49 AM   #3 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 17
appcody is on a distinguished road
Question

ok so I made some pictures with my controller and my sub view controllers. And a picture of my project. Once i click on the button for the 1. Step, the app crashes.

EDIT: I'm sorry but the pictures turned out to be extremely small. The code for my applicationdelegate.h is #import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>

@interface ffssafsafdsfdasfdasdfaAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate> {
UIWindow *window;
UITabBarController *tabBarController;
}

- (IBAction) alertme12;


@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;

@end


and my application delegate.m is


@implementation ffssafsafdsfdasfdasdfaAppDelegate

@synthesize window;
@synthesize tabBarController;


#pragma mark -
#pragma mark Application lifecycle

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

// Override point for customization after application launch.

// Add the tab bar controller's view to the window and display.
[self.window addSubview:tabBarController.view];
[self.window makeKeyAndVisible];
[application setStatusBarHidden: YES];

return YES;
}


- (void)applicationWillResignActive:(UIApplication *)application {
/*
Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
*/
}


- (void)applicationDidEnterBackground:(UIApplication *)application {
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
*/
}


- (void)applicationWillEnterForeground:(UIApplicatio n *)application {
/*
Called as part of transition from the background to the inactive state: here you can undo many of the changes made on entering the background.
*/
}


- (void)applicationDidBecomeActive:(UIApplication *)application {
/*
Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
*/
}


- (void)applicationWillTerminate:(UIApplication *)application {
/*
Called when the application is about to terminate.
See also applicationDidEnterBackground:.
*/
}


#pragma mark -
#pragma mark UITabBarControllerDelegate methods

/*
// Optional UITabBarControllerDelegate method.
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
}
*/

/*
// Optional UITabBarControllerDelegate method.
- (void)tabBarController:(UITabBarController *)tabBarController didEndCustomizingViewControllers:(NSArray *)viewControllers changed:(BOOL)changed {
}
*/


#pragma mark -
#pragma mark Memory management

- (void)applicationDidReceiveMemoryWarning:(UIApplic ation *)application {
/*
Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
*/
}


- (void)dealloc {
[tabBarController release];
[window release];
[super dealloc];
}

@end

I have about 5 Subview controllers in the project
Attached Images
File Type: jpg Bildschirmfoto 2011-07-06 um 08.45.26.jpg (7.8 KB, 1 views)
File Type: jpg Bildschirmfoto 2011-07-06 um 08.44.30.jpg (12.1 KB, 1 views)

Last edited by appcody; 07-06-2011 at 01:54 AM. Reason: pictures turned out to be extremely small and unlegible
appcody is offline   Reply With Quote
Reply

Bookmarks

Tags
tab bar based app, uialert, video, view based app

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 353
9 members and 344 guests
apatsufas, chemistry, lendo, leostc, Leslie80, lzwasyc, MarkC, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:33 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0