2013-01-18 14 views
0

이렇게 모든 일이 잘 진행되고 내 앱이 거의 완료되었습니다. iOS 시뮬레이터에서 실행하려고 변경하지 않았습니다. 내 iPhone에서 다시 시도 할 때 화면이 시작 이미지 후에 검은 색으로 변합니다! 그리고 xcode에 어떤 오류도 발생하지 않습니다.iPhone 화면이 시작한 후 검은 색으로 변합니다.

iOS 시뮬레이터를 재설정 (재설정 만)하고, Macbook을 다시 시작하고, iPhone을 다시 시작하고, 홈 화면에서 앱을 삭제 한 다음 다시 설치하려고했습니다. 내 아이폰에 아이폰 OS 6

건물의 5

AppDelegate.h

// 
// AppDelegate.h 
// 
// 
// Created by Øyvind Larsen Runestad on 13.01.13. 
// Copyright (c) 2013 Øyvind Larsen Runestad. All rights reserved. 
// 

#import <UIKit/UIKit.h> 

@interface AppDelegate : UIResponder <UIApplicationDelegate> { 

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

@property(nonatomic, readonly) UITabBarController *moreNavigationController; 

@end 

AppDelegate.m

// 
// AppDelegate.m 
// 
// 
// Created by Øyvind Larsen Runestad on 13.01.13. 
// Copyright (c) 2013 Øyvind Larsen Runestad. All rights reserved. 
// 

#import "AppDelegate.h" 

@implementation AppDelegate 

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{ 
    // Override point for customization after application launch. 
    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, this method is called instead of applicationWillTerminate: when the user quits. 
} 

- (void)applicationWillEnterForeground:(UIApplication *)application 
{ 
    // Called as part of the 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. Save data if appropriate. See also applicationDidEnterBackground:. 
} 

@end 

사람은이 문제에 대한 해결책이 있습니까?

감사합니다. Øyvind Larsen Runestad.

EDIT : SOLVED! 좋아

, 내가 그것을 밖으로 분류. 프로젝트의 메인 스토리 보드는 공백으로 설정되었습니다. 이 작업을 MainStoryboard로 변경하면됩니다. 내 AppDelegate에 모든 @의 H2CO3 후 괜찮처럼

가 보인다,이 정말이 실제 코드

+1

일부 코드/스펙을 보지 않고도이 작업을 도와 드릴 수 있습니다. 어떤 iOS를 구축하고 있으며 앱 위임 방법을 보여줄 수 있습니까? –

+0

인터페이스 빌더 연결을 확인하십시오 –

+0

업데이트 된 게시물. 무슨 연관이 있니? –

답변

0

경우), 다음 문제는 다음과 같습니다 당신이 때 키 윈도우를 생성하지 않는 앱이 실행됩니다.

+0

하지만 변경하지 않았습니다. AppDelegate 파일을 복사/붙여 넣기 만하면됩니다. 앱이 내 iPhone 5의이 시점까지 잘 돌아갔습니다. –

+0

@ ØyvindL.Runestad 'application : didFinishLaunchingWithOptions :'메소드가 비어 있으며 키 윈도우를 설정하지 않았습니다. 이 코드는 작동하지 않을 수 있습니다. –

+0

이것은 내 AppDelegate 파일이며 나는 그들에게 일을하지 않았습니다. 내가 그걸 가능하게 만들 수있는 아이디어가 있습니까? –

관련 문제