Discussion Forums  >  Images, Documents, File Locations

Replies: 5    Views: 115

lady_di
Aspiring developer
Profile
Posts: 31
Reg: Feb 06, 2013
Geelong, VIC
310
10/09/13 10:55 PM (10 years ago)

Images not displaying

Hi, I am having issues with images not displaying in the simulator. I have added images all file names in lower case, png files, 4.3MB, 1072x720 I have added to Xcode in BT_images file and are displaying in copy bundle resources. Images displaying in copy bundle resources as in BT_images (process done through adding images through finder into BT_images file). I have also uploaded to buzz touch. I have updated the BT_config data. Deleted the app from the simulator. Run a clean and build. Still the images are not appearing??? I have tried to load images to both a simple menu and a menu with image plugin and neither will work??? Any ideas what I maybe doing wrong?
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
10/09/13 11:20 PM (10 years ago)
Howdy! Anything showing up in the debug Console that could help us debug? Look for debug info to be written at the time you try to load a screen that you expect an image on, and then post that info here. That'll help us help you! Mark
 
lady_di
Aspiring developer
Profile
Posts: 31
Reg: Feb 06, 2013
Geelong, VIC
310
like
10/10/13 01:55 AM (10 years ago)
Hi, Thank you I opened the simulator and clicked through to the screen in which the image is not appearing. There was a lot of code in the debug console I just copy the last part that seemed to relate to the screen in question. I hope this is what you need. The image file that isn't loading is 'withgrandma1.png' Cheers 2013-10-10 19:49:16.198 winemapz[2498:1fd03] BT_viewUtilities: getTableViewForScreen with nickname: "With grandma Bendigo & Heathcote List" and itemId: 1E5697D56B9C1E13862E8D9 and type: WB_screen_menuImage 2013-10-10 19:49:16.199 winemapz[2498:1fd03] BT_fileManager: File does exist in Xcode bundle: withgrandma1.png 2013-10-10 19:49:16.213 winemapz[2498:1fd03] WB_screen_menuImage: viewWillDisappear in BT_viewController BASE CLASS 2013-10-10 19:49:16.213 winemapz[2498:1fd03] WB_screen_menuImage: viewWillAppear 2013-10-10 19:49:16.213 winemapz[2498:1fd03] BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: "With grandma Bendigo & Heathcote List" and itemId: 1E5697D56B9C1E13862E8D9 and type: WB_screen_menuImage 2013-10-10 19:49:16.214 winemapz[2498:1fd03] BT_fileManager: File does exist in Xcode bundle: blank.png 2013-10-10 19:49:16.214 winemapz[2498:1fd03] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2013-10-10 19:49:16.214 winemapz[2498:1fd03] BT_background_view: setImage 2013-10-10 19:49:16.214 winemapz[2498:1fd03] winemapz_appDelegate: supportedInterfaceOrientationsForWindow 2013-10-10 19:49:16.214 winemapz[2498:1fd03] SHOULD NOT ROTATE 2013-10-10 19:49:16.214 winemapz[2498:1fd03] WB_screen_menuImage: canBecomeFirstResponder in BT_viewController BASE CLASS 2013-10-10 19:49:16.314 winemapz[2498:1fd03] WB_screen_menuImage: loadData 2013-10-10 19:49:16.314 winemapz[2498:1fd03] WB_screen_menuImage: using menu items from the screens configuration data. 2013-10-10 19:49:16.315 winemapz[2498:1fd03] WB_screen_menuImage: layoutScreen 2013-10-10 19:49:16.567 winemapz[2498:1fd03] WB_screen_menuImage: viewDidAppear in BT_viewController BASE CLASS
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/10/13 02:45 AM (10 years ago)
It's showing the image as there, but there is no log output with respect to the 'use' of the image. Cheers! -- Smug
 
lady_di
Aspiring developer
Profile
Posts: 31
Reg: Feb 06, 2013
Geelong, VIC
310
like
10/10/13 03:07 AM (10 years ago)
Ok Thank you. Any suggestions on what I can do to correct it?
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
10/10/13 04:20 AM (10 years ago)
At the moment, I'm not sure. I took a look at the Menu With Image code... all of the image management for the header is done in the 'viewDidLoad' method, and we'd want to look at that portion of the logs to see what's happening when it's supposed to be loading the image. On line 84 it sets the proposed image size depending on device. On line 111 it retrieves the filename of the image from json (if a local image is being used) On line 116 it sets the image from local file or URL, depending on existence. On line 131 it loads and displays the image in the header view. So, not a whole lot going on. It shouldn't be too hard to fix, once we find out where the problem lies. But the section of logging to look would be the 'viewDidLoad' part... Cheers! -- Smug
 

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.