Discussion Forums  >  Uncategorized

Replies: 11    Views: 307

MFOG on a mission
I hate code!
Profile
Posts: 27
Reg: Sep 30, 2011
Laguna Beach
870
12/29/11 07:05 PM (14 years ago)

Need tips on refreshing my image file structure within xcode and buzztouch

I have a menu page background image that is appearing as incorrect image with another name. I double checked the buzztouch and made sure my file name is correct. Still it appears as the wrong background image. I have performed a name change an even deleted the image from xcode and then reimported the image. Still the wrong image pops up. My only guess is that I need to somehow refresh my file structure. Can someone give me some tips ASAP? Thank you for the help. I am super grateful for the Buzztouch open source forum. Cheers Jeremy
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/29/11 07:11 PM (14 years ago)
Hi, Check this doc and see if it helps: http://www.buzztouch.com/resources/Adding_Files_To_A_Project_v1.0.pdf After you add/remove your files from Xcode, make sure to do a Clean before you build your app again. Let me know if that helps! Mark
 
MFOG on a mission
I hate code!
Profile
Posts: 27
Reg: Sep 30, 2011
Laguna Beach
870
like
12/29/11 09:57 PM (14 years ago)
Okay I performed the clean and no luck. I thought for sure that was going to do the trick. Im hoping I don't have to delete the complete menu and image library I built. I think this would definitely clear what I have to start fresh, but there must be a way to work this out.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
12/29/11 10:20 PM (14 years ago)
Is this with BT Server, or v1.5 of Buzztouch? Mark
 
MFOG on a mission
I hate code!
Profile
Posts: 27
Reg: Sep 30, 2011
Laguna Beach
870
like
12/29/11 10:34 PM (14 years ago)
Hi Mark, v1.5
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
12/30/11 04:36 AM (14 years ago)
Hi MFOG. You for sure don't need to rebuild any binaries to change images. UNLESS you are setting your control panel to use an image that you say exists in the project but does not. As you know, if you use an image name, and not an image url, the image must exist in the compiled binary or the app won't have any idea what this image is or where to find it. If you simply drag it into Xcode after compiling the project, it wont' change anything. I think you realize this. But, you don't see the image you expect... Some ideas: Are you sure the app is looking for the image you want it to. Have a look at the console in Xcode with the app running, it will show you all sorts of good info about what images it's loading and where it's looking for them. The console outputs loads of useful info we typed exactly for this purpose, so you can sleuth out unexpected behavior. The best waht to do this is... a) Run the app with the console open. Tons of stuff will print. b) Get to the menu with the button on it that loads your screen with issues. c) 'Clear' the console so it's blank and far less confusing. d) Tap the menu item to load your funky screen. The console will show only info related to this screen it's loading making it much easier to see what's happening on a screen-by-screen basis. Every button click, refresh, load, whatever outputs tons of info to the console. Clearing it make it easier to see what's happening on each event, tap, refresh, etc. I'll bet the image you think you're loading is not actually the image you want to load because the configuration data you 'see' in the Xcode project is not the configuration data the app is actually using. I'll be the app is using config data is cached after downloading it from the control panel. This makes the config data in Xcode obsolete because it got a newer copy from your control panel. The output console will show you exactly where it's reading it's config data from (the device's cache or the Xcode project) then it will show you exactly what images it's looking for and loading. You should be able to figure it out from there.
 
MFOG on a mission
I hate code!
Profile
Posts: 27
Reg: Sep 30, 2011
Laguna Beach
870
like
12/30/11 10:49 AM (14 years ago)
Sorry I am not clear on the exact issue, so I will paste in here for you guys to have a closer look. Here is the code from the button tap: 2011-12-30 09:31:48.304 myhadomobileportal[4407:207] BT_screen_menuButtons: menuItemTap 2011-12-30 09:31:48.505 myhadomobileportal[4407:207] BT_application: getScreenDataByItemId 40B22486C0CB15E4CE8DA77 2011-12-30 09:31:48.505 myhadomobileportal[4407:207] BT_application: screenType is BT_screen_menuButtons for screen with nickname: W_C_Library2 and itemId: 40B22486C0CB15E4CE8DA77 2011-12-30 09:31:48.506 myhadomobileportal[4407:207] BT_viewControllerManager: handleTapToLoadScreen 2011-12-30 09:31:48.506 myhadomobileportal[4407:207] BT_viewControllerManager: the parent screen nickname: Water Crystals Sub Menu itemId: 50CED546944735D498D824A itemType: BT_screen_menuButtons 2011-12-30 09:31:48.506 myhadomobileportal[4407:207] BT_viewControllerManager: the menu/button tapped is itemId: 427148F9672527BF5D867B9 2011-12-30 09:31:48.507 myhadomobileportal[4407:207] BT_viewControllerManager: the screen to load is nickname: W_C_Library2 itemId: 40B22486C0CB15E4CE8DA77 itemType: BT_screen_menuButtons 2011-12-30 09:31:48.507 myhadomobileportal[4407:207] BT_viewControllerManager: initViewControllerForScreen nickname: W_C_Library2 itemId: 40B22486C0CB15E4CE8DA77 type: BT_screen_menuButtons 2011-12-30 09:31:48.508 myhadomobileportal[4407:207] BT_screen_menuButtons: INIT 2011-12-30 09:31:48.509 myhadomobileportal[4407:207] BT_viewUtilities: setting nav-bar background for W_C_Library2 color: clear 2011-12-30 09:31:48.509 myhadomobileportal[4407:207] BT_rotatingNavController: pushViewController for screen: 40B22486C0CB15E4CE8DA77 2011-12-30 09:31:48.510 myhadomobileportal[4407:207] BT_rotatingNavController: transition type: flip 2011-12-30 09:31:48.511 myhadomobileportal[4407:207] BT_screen_menuButtons: viewDidLoad 2011-12-30 09:31:48.511 myhadomobileportal[4407:207] BT_screen_menuButtons: viewWillAppear 2011-12-30 09:31:48.511 myhadomobileportal[4407:207] BT_viewUtilities: configureBackgroundAndNavBar for screen with nickname: W_C_Library2 and itemId: 40B22486C0CB15E4CE8DA77 and type: BT_screen_menuButtons 2011-12-30 09:31:48.512 myhadomobileportal[4407:207] BT_fileManager: File does exist in Xcode bundle: W_C_Library2.png 2011-12-30 09:31:48.513 myhadomobileportal[4407:207] BT_background_view: Image for background view exists in Xcode bundle - not downloading. 2011-12-30 09:31:48.514 myhadomobileportal[4407:207] BT_background_view: setImage 2011-12-30 09:31:48.614 myhadomobileportal[4407:207] BT_screen_menuButtons: loadData 2011-12-30 09:31:48.615 myhadomobileportal[4407:207] BT_screen_menuButtons: parsing menu-items from app's configuration file. 2011-12-30 09:31:48.615 myhadomobileportal[4407:207] BT_screen_menuButtons: layoutScreen I am noticing that the file that is giving me issues is not downloading. The background image file from the parent menu background loads instead...maybe this is a default function XCODE cannot access the specified file? File name W_C_Library2.png. Here are the lines from above that I think apply to my issue: - File does exist in Xcode bundle: W_C_Library2.png - Image for background view exists in Xcode bundle - not downloading. I am so close to finishing my app and this is the last bugger I am working out. UUUUggggghhhhh .....lol
 
Stefan
buzztouch Evangelist
Profile
Posts: 558
Reg: Dec 21, 2010
Sweden
14,780
like
12/30/11 02:35 PM (14 years ago)
@ MFOG 1. Remove the png file from Xcode 2. Make sure to remove to trash and not only the reference to the file. 3. Clean your project. 4. Close and restart Xcode 5. Locate the png file in finder and rename it to something with small letters only 6. Add the file to Xcode again - make sure to mark the 'Copy items into destinations group's folder' 7. In Buzztouch update the screen with the proper new image name. 8. Download the config data and paste it to Xcode (you find the config data an your apps control panel on buzztouch.com) 9. Build and Run the app in Xcode. Let us know how it goes BR/Stefan
 
MFOG on a mission
I hate code!
Profile
Posts: 27
Reg: Sep 30, 2011
Laguna Beach
870
like
12/30/11 05:51 PM (14 years ago)
@ Stefan and BT I tried this and no luck. I have followed all steps carefully. These are all great trouble shooting workflows...I would have thought this would have cleared it. Im not giving and completely starting over just yet. Any more tips are greatly appreciated.
 
MFOG on a mission
I hate code!
Profile
Posts: 27
Reg: Sep 30, 2011
Laguna Beach
870
like
01/01/12 10:32 AM (14 years ago)
Been trying everything posted above and then some...Still No Luck Yet. Might be good to have a pro do a once over to help me work this issue out. Are there any buzztouch freelance programmers that want to pick up a days work? I can perform a screen capture movie to show the issue. Cheers Jeremy
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
01/01/12 09:48 PM (14 years ago)
Hi @MFOG, If you wanted to provide me a copy of your iOS package, perhaps on DropBox or something, I could try and load it in my Xcode and see what happens? Feel free to contact me at MrkFleming at Gmail dot com if interested. Mark
 
MFOG on a mission
I hate code!
Profile
Posts: 27
Reg: Sep 30, 2011
Laguna Beach
870
like
01/02/12 12:18 AM (14 years ago)
Okay cool, I will contact you tomorrow Mark. Thanks so much man!
 

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.