2012-01-19 2 views
1

설정 파일을 사용하여 설정을 제어하는 ​​Xcode 프로젝트에 중점을두고 있습니다. 프로젝트 내에 프로젝트 내에 프로젝트가 있습니다. 구성 파일에 내용을 반향시킬 수 있습니까? 디버깅을 시도하면서 변수 중 일부가 무엇인지 확인하는 것이 도움이 될 것입니다. BUNDLE_LOADER, HEADER_SEARCH_PATHS 등과 같습니다.xcode 4 - 설정 파일에 내용을 표시하는 방법이 있습니까?

나는 로그 파일을 읽음으로써 이러한 것들을 얻을 수 있다는 것을 알고있다. 그러나 그것은 진짜 고통입니다!

편집 : 명확히하기 위해, 이것들은 설정 파일에 의해 제어되는 빌드 타임 변수입니다.

답변

0

당신은 항목 경고 뷰를 생성하고로드 ...

- (void)viewDidLoad { 
    // get your vairables from the defaults 
    NSString *variable1 = [[NSUserDefaults standardUserDefaults] stringForKey:@"variable1"]; 
    NSString *variable2 = [[NSUserDefaults standardUserDefaults] stringForKey:@"variable2"]; 

    // build your alert mesage 
    NSString *alertMessage = [NSString stringWithFormat:@"the variables you are looking for are %@ and %@",variable1,variable2]; 

    // create the alert view for display 
    UIAlertView *alertmsg = [[UIAlertView alloc] initWithTitle:@"Variables:" message:alertMessage delegate:self cancelButtonTitle:@"ok" otherButtonTitles: nil]; 

    // display the alert 
    [alertmsg show]; 


    [super viewDidLoad]; 
} 
+0

내 첫 댓글이 기본 변수이지만, 변경해야 할 것입니다 모두가 이미 있었다 변수에 대한 소스입니다 수 있습니다 로그에 표시하기 위해 작업 중입니다. – Silvertiger

+0

응답 해 주셔서 감사합니다.하지만 구성 파일에 의해 결정된대로 빌드 설정을 보여주는 빌드 타임에 반향을 울리고 싶습니다. –

관련 문제