Discussion Forums  >  Images, Documents, File Locations

Replies: 21    Views: 226

the_oilman
Apple Fan
Profile
Posts: 38
Reg: Jul 01, 2012
SW Wyoming
10,880
07/03/12 07:38 PM (13 years ago)

Home Screen Background Image iOS

VERY new here, and am still working with BT at the most basic level. So far, I have been able to work through each of my issues using the forums, the video tutorials, external sites, but am stuck now. Seems @Fred@mySkylla com has answered my question quite nicely for Android, but I can't seem to find a similar specific answer for iOS. What is the process in order to add a background image to the default Home Screen? What I have done: On the Screens/Action page of the control panel, when viewing the settings for the Home Screen Menu, I have set the Screen Background Image to my .png file, which I uploaded. I already had the source code downloaded. Refreshing didn't help in the iOS simulator. So, reviewing available resources, I see (I think) I needed to copy the file into the source directory and into the BT_Images folder. Thus I did. Then I drug the folder into the app in SDK similar to dragging in the BT_Plugins folder. I stopped (cleaned is the term?) and built (compiled/ran?) the code again. It still did not show up. Other changes are taking affect. Here are a couple lines from the Log: 2012-07-03 21:07:28.456 ********[10090:17303] BT_fileManager: File does exist in Xcode bundle: #####.png 2012-07-03 21:07:28.457 ********[10090:17303] BT_background_view: Image for background view exists in Xcode bundle - not downloading. I am confused by the "File does not exist in Xcode bundle" and "Image for background view exists in Xcode bundle." Seems to be contradictory? Thanks for your help! Fred (not THAT Fred) :)
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/03/12 09:21 PM (13 years ago)
Following because it seems you done all necessary. signed, That Fred
 
Known
Apple Fan
Profile
Posts: 83
Reg: Jan 07, 2012
Suttons Bay, Mi...
830
like
07/03/12 09:29 PM (13 years ago)
How about copying your config file from your control panel into your project. Cheryl
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/03/12 10:20 PM (13 years ago)
Hi @the_oilman, Welcome to buzztouch! It sure looks like you're doing everything correct. The messages you see are basically saying the image exists in Xcode, and therefore does not need to be downloaded from a URL. So, it's more like an "everything is OK" not a "can't find the file" message. Does anything show up in the console after that? And are you sure the png file is a valid png file? Finally...just for review, though I suspect you already know it...he's some info from the v1.5 documentation on images: http://www.buzztouch.com/docs/v1.5/artworkGraphics.php Let us know how this goes! Mark
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/03/12 10:21 PM (13 years ago)
@Cheryl's advice is a good one as well. Try copying the information from your Configuration Data link into your BT_Config.txt file. Then do a Product...Clean, and rebuild your app. Mark
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
07/04/12 06:29 AM (13 years ago)
If you can see the png file name you uploaded into your image directory, you can refer to it as a URL in the page properties. I know it sounds daft, but try that and see if it works (it did for me!).
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/04/12 06:41 AM (13 years ago)
@AlanMac, clever. Fred
 
the_oilman
Apple Fan
Profile
Posts: 38
Reg: Jul 01, 2012
SW Wyoming
10,880
like
07/04/12 07:10 AM (13 years ago)
@Cheryl: Thanks for the idea. I will definitely try this and get back today about how it turned out. I wonder if this will be part of the process in v2 or if something isn't working right for me and the image should appear without "needing" to copying the config file every time. ?? @GNW/Mark: There are more lines in the Log after the two I pasted; however, none of them appear to have anything to do with either the Home Screen or the .png file. And thank you for the v1.5 documentation reference. I have looked to that for an answer before posting, but reviewed the link you gave in case I missed something. One thing that immediately came to mind was to check to see if the image was flattened. So, I viewed the image from the Files/Media page in the control panel, opened the image, then "inspected the element" in Google Chrome to view the html code associated with the image. There was the opening html tag, the body style tag, the image style tag that referred to the URL, then the respective closing tags. I think that means its a flat image, so that shouldn't be holding me back. On a side note, the v1.5 online document is terrific. However, I often find that I need a hard copy to work from (or a 2nd/3rd monitor which I don't have) so I can view the documentation and what I'm working on at the same time, so I pasted the entire thing into a Word doc then created a PDF. A) Please don't tell me it's been done and I missed it :), and B) if it would be useful to others, I'd be happy to upload for all. @AlanMac: What a novel approach! Seems it should most definitely work, and I may try that if either I can't solve it otherwise, or just merely for the fun of it, as it will be a great work-around that may apply to other issues later on. However, I really feel that for this case, I shouldn't need a work-around, but rather, there is an undiscovered issue (most likely on my end) that I would like to get cleared up instead of steering clear. But thanks! Fred Dos
 
the_oilman
Apple Fan
Profile
Posts: 38
Reg: Jul 01, 2012
SW Wyoming
10,880
like
07/04/12 07:25 AM (13 years ago)
@Cheryl, et. al: I just copied and pasted the Config document from the control panel into the BT_config.txt file inside Xcode, then File->Saved. Then I rebuilt (ran) the code and did not see any change. Maybe I should add that I have the image's Scale/Position set to Bottom Middle in the control panel (although I have tried center, Full Screen, and "select" all to no avail. I also currently only have 3 rows of menu selections using the Menu Simple plugin. The image currently measures 288 x 110 - so that should be more than adequate, right? It started out as 400 wide, but I shrunk it thinking that was the problem. What other information could I offer that would be helpful? I appreciate all of the time each of you have already spent thinking about this. What a great community to be a part of! Fred Dos
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/04/12 08:03 AM (13 years ago)
the image should appear without "needing" to copying the config file every time. ?? The image should appear when you refresh the data without having to copy and paste the Config file. You only need to copy and paste the Config data when you're going to package the app. You don't even have to do that, but the app will have an old Config file that can be a problem for various reasons. So the Config data should not be the reason you don't see the background images. Fred
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/04/12 08:08 AM (13 years ago)
What is the image file name? What did you enter in the image file name box? Fred
 
Known
Apple Fan
Profile
Posts: 83
Reg: Jan 07, 2012
Suttons Bay, Mi...
830
like
07/04/12 08:10 AM (13 years ago)
Fred, This is another one of those odd questions, and you might have expressed this above and I missed it. The .png image file format. Is it a true .png file? I've inadvertently uploaded the .psd or changed the file name in a directory without actually changing the format within Photoshop and have had similar results.
 
the_oilman
Apple Fan
Profile
Posts: 38
Reg: Jul 01, 2012
SW Wyoming
10,880
like
07/04/12 08:12 AM (13 years ago)
Cheryl; It should be a .png. It was edited in Photoshop, and I still have the .psd file associated with it, but I "Saved As" a .png to export it. Fred
 
the_oilman
Apple Fan
Profile
Posts: 38
Reg: Jul 01, 2012
SW Wyoming
10,880
like
07/04/12 08:15 AM (13 years ago)
Fred; Oops, I missed your second response with your questions. Sorry. **What is the image file name? tbird.png **What did you enter in the image file name box? tbird.png And that is the name of the file that I copied into the BT_Images folder and then copied into Xcode. That is the file name that shows up in the Log (see above - but I had #####'d it out). Fred
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/04/12 08:16 AM (13 years ago)
Edit. Bad advice removed. Fred
 
the_oilman
Apple Fan
Profile
Posts: 38
Reg: Jul 01, 2012
SW Wyoming
10,880
like
07/04/12 08:28 AM (13 years ago)
Oops. This one appeared when I refreshed my screen. It resubmitted my previous post. Apologies to all. I didn't see a way to delete the post. Only edit.
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/04/12 04:29 PM (13 years ago)
Hi, This is just super strange. Absolutely no reason it shouldn't work. If you want to send me your zipped source folder, I'd be more than happy to run it through my Xcode and help to debug it better. Or, you could send me your BT_Congig.txt file, and I can check that out for errors. Feel free to contact me directly at MrkFleming at gmail dot com and we can try to get this worked out! Mark
 
the_oilman
Apple Fan
Profile
Posts: 38
Reg: Jul 01, 2012
SW Wyoming
10,880
like
07/04/12 05:18 PM (13 years ago)
I can do that, but before you go to too much more time and trouble, please know that this is my very first attempt at creating an app, let alone using BT. I feel like this is truly just in the idea stage right now, and this app is not much more than a sandbox for me as I try out different things and learn about BT. I almost didn't post the question for that reason - I don't really mean to have a lot of people troubleshooting this for me when, in the end, it won't result in anything that I will probably use. It's just the idea of it. That being said, before you spend more time, perhaps what I should do is trash the whole thing and start over. Truly, I have not done very much at all. And I could easily redo everything in an hour's time or less, which is a tenth of what you have all invested already for me. @GNW/Mark: If you'd like to pursue it for the sake of knowing why, I'd be happy to send it to you. But please feel free to say never mind. My current plan is to simply leave the current app in place as is and start anew tonight after the kids are in bed and see if I can replicate the issue. Regards, The Other Fred P.S. Seriously, what are the odds there are two Freds on this forum. I mean, really, how many Freds have you all met in your life, real or virtual? My guess is they are BOTH on this forum!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/04/12 05:24 PM (13 years ago)
Howdy! It's all good, and all part of the learning process...for you and me both. I learn some more debugging, and you get to learn how to build your app. It's a win/win in my view! Send it on over and I'll give it a whirl. Mark
 
the_oilman
Apple Fan
Profile
Posts: 38
Reg: Jul 01, 2012
SW Wyoming
10,880
like
07/04/12 05:39 PM (13 years ago)
@Mark: Zipped file sent via GMail. Thanks!
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
07/04/12 05:40 PM (13 years ago)
Got it...working it now!
 
Fred@mySkylla com
Android Fan
Profile
Posts: 5259
Reg: Oct 03, 2011
location unknow...
62,560
like
07/04/12 05:51 PM (13 years ago)
Don't fret over Fred, there are at least two more. Fred
 

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.