etsdesign
Aspiring developer
Profile
Posts: 19
Reg: May 12, 2013
Gaithersburg, m...
1,440
09/25/13 08:31 PM (12 years ago)

Xcode simulator problem

Hello, I'm having a quirky problem that *wasn't* a problem until I upgraded to Xcode 5.0...so I hope that someone has an answer for me! I'm using location maps to identify specific areas within the city of Philadelphia. When the user clicks on a location name, (s)he is presented with the location (pin) on the map, the location name and can then click the "i" to be taken to a .pdf file that explains the significance of that site. so here's my dilemma: When the user clicks the "i", I get an error message (within the simulator) that says "Data for this screen has not been downloaded. Please check your internet connection." I click the "OK" button and a blank .pdf document appears with the correct filename at the top. This all worked well in the last version of Xcode...but not now. ANY help is greatly appreciated! Thank you in advance. -Manny
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
09/25/13 11:21 PM (12 years ago)
Hi Manny, Is there anything from the debug console that happens at the time of this error that you can paste here for us to review? In theory, it should work just fine. Mark
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
09/26/13 01:21 AM (12 years ago)
Hi Manny, Did you make this pdf available via a url at some point? I had the same issue, to solve it I had to delete the PDF screen, take off the pin on the map and start again. Don't ask me what happened there but it worked. Have you got the same issue on a device? Hope it helped. :) Farcat
 
etsdesign
Aspiring developer
Profile
Posts: 19
Reg: May 12, 2013
Gaithersburg, m...
1,440
like
09/26/13 06:56 AM (12 years ago)
Mark and Farcat, Thank you both for your speedy replies. Mark, I'll check the debug console and get back to you this evening (I'm currently traveling). Farcat, these pdf documents were always uploaded from my machine. I have over 50 of them, so I'm *hoping* that I don't have to start from scratch with each of the sites. If I do have to start over, I certainly will...but I'm hoping not. Again, thank you both so much. I'm very, very new (and totally "green") to this. I absolutely love the Buzztouch environment and only wish that I was more confident and comfortable with it. All in good time, I hope! Kind regards, Manny
 
etsdesign
Aspiring developer
Profile
Posts: 19
Reg: May 12, 2013
Gaithersburg, m...
1,440
like
09/29/13 02:04 PM (12 years ago)
Sorry that this reply took so long. In response to GoNorthWest's post, here's the portion from the debug console that applies to my problem (e.g., pdf not displaying). I hope that this helps and is what you expected: 2013-09-29 17:02:23.538 spysites[13991:a0b] BT_screen_map: mapView:calloutButtonTapped 2013-09-29 17:02:23.539 spysites[13991:a0b] BT_application: getScreenDataByItemId AA693D3F8B80CAC0E9396A2 2013-09-29 17:02:23.539 spysites[13991:a0b] BT_application: screenType is BT_screen_pdfDoc for screen with nickname: "Independence Hall - pdf" and itemId: AA693D3F8B80CAC0E9396A2 2013-09-29 17:02:23.539 spysites[13991:a0b] BT_viewControllerManager: handleTapToLoadScreen 2013-09-29 17:02:23.539 spysites[13991:a0b] BT_viewControllerManager: the parent screen nickname: "Independence Hall - location" itemId: 8642DE139913EA3682F8410 itemType: BT_screen_map 2013-09-29 17:02:23.539 spysites[13991:a0b] BT_viewControllerManager: the menu/button tapped is itemId: notUsedInThisContext 2013-09-29 17:02:23.540 spysites[13991:a0b] BT_viewControllerManager: the screen to load is nickname: "Independence Hall - pdf" itemId: AA693D3F8B80CAC0E9396A2 itemType: BT_screen_pdfDoc 2013-09-29 17:02:23.540 spysites[13991:a0b] BT_viewControllerManager: initViewControllerForScreen nickname: "Independence Hall - pdf" itemId: AA693D3F8B80CAC0E9396A2 type: BT_screen_pdfDoc 2013-09-29 17:02:23.540 spysites[13991:a0b] BT_screen_pdfDoc: INIT 2013-09-29 17:02:23.540 spysites[13991:a0b] BT_navigationController: pushViewController 2013-09-29 17:02:23.543 spysites[13991:a0b] BT_navigationController: pushViewController for screen: AA693D3F8B80CAC0E9396A2 2013-09-29 17:02:23.543 spysites[13991:a0b] BT_screen_pdfDoc: viewDidLoad 2013-09-29 17:02:23.544 spysites[13991:a0b] BT_viewUtilities: getWebNavBarForScreen with nickname: "Independence Hall - pdf" and itemId: AA693D3F8B80CAC0E9396A2 and type: BT_screen_pdfDoc 2013-09-29 17:02:23.546 spysites[13991:a0b] BT_screen_map: viewWillDisappear in BT_viewController BASE CLASS 2013-09-29 17:02:23.546 spysites[13991:a0b] BT_screen_pdfDoc: viewWillAppear 2013-09-29 17:02:23.547 spysites[13991:a0b] BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: "Independence Hall - pdf" and itemId: AA693D3F8B80CAC0E9396A2 and type: BT_screen_pdfDoc 2013-09-29 17:02:23.547 spysites[13991:a0b] BT_fileManager: File does exist in Xcode bundle: blank.png 2013-09-29 17:02:23.547 spysites[13991:a0b] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2013-09-29 17:02:23.547 spysites[13991:a0b] BT_background_view: setImage 2013-09-29 17:02:23.548 spysites[13991:a0b] BT_screen_pdfDoc: initLoad 2013-09-29 17:02:23.548 spysites[13991:a0b] BT_fileManager: File does not exist in Xcode bundle: Independence Hall-pdf.pdf 2013-09-29 17:02:23.548 spysites[13991:a0b] BT_fileManager: File does not exist in cached directory: Independence Hall-pdf.pdf 2013-09-29 17:02:23.549 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.550 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.550 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.550 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.550 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.551 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.551 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.551 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.551 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.551 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.552 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.552 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.552 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.552 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.552 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.553 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.553 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.553 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.553 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.554 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.554 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.554 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.554 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.554 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.555 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.555 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.555 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.555 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.556 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.556 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.556 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.556 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.556 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.557 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.557 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.557 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.557 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.558 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.558 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.558 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.558 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.559 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.559 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:23.559 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:23.566 spysites[13991:a0b] BT_screen_pdfDoc: canBecomeFirstResponder in BT_viewController BASE CLASS 2013-09-29 17:02:24.071 spysites[13991:a0b] BT_screen_pdfDoc: viewDidAppear in BT_viewController BASE CLASS 2013-09-29 17:02:37.096 spysites[13991:a0b] BT_screen_pdfDoc: alertView:clickedButtonAtIndex: 0 2013-09-29 17:02:37.617 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:37.617 spysites[13991:a0b] SHOULD NOT ROTATE 2013-09-29 17:02:37.617 spysites[13991:a0b] spysites_appDelegate: supportedInterfaceOrientationsForWindow 2013-09-29 17:02:37.617 spysites[13991:a0b] SHOULD NOT ROTATE --------------------------- FYI, the file that should display is named "independence hall - pdf" Thanks again for your help! - Manny
 
etsdesign
Aspiring developer
Profile
Posts: 19
Reg: May 12, 2013
Gaithersburg, m...
1,440
like
09/29/13 03:12 PM (12 years ago)
BTW, the accompanying website is called "Spy Sites of Philadelphia" and "Spy Sites of New York" www.spy-sites.com check it out!
 
etsdesign
Aspiring developer
Profile
Posts: 19
Reg: May 12, 2013
Gaithersburg, m...
1,440
like
10/01/13 06:40 AM (12 years ago)
Taking Farcat's direction, I deleted the map location, re-added it and linked the respective .pdf file again. For the moment, it all seems to be working. Thank you, Farcat! -Manny
 
farcat
buzztouch Evangelist
Profile
Posts: 1008
Reg: Jan 27, 2012
France
13,230
like
10/01/13 01:54 PM (12 years ago)
Hi Manny, Glad you got it sorted! :) Not sure what happened there.... Another thing you can do if things go wrong is run your Json data in a validator: http://jsonlint.com/ Looking forward to seeing your app, keep up the good work. Farcat
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.