Discussion Forums  >  Uncategorized

Replies: 14    Views: 1344

Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
02/09/11 02:23 AM (15 years ago)

Background Image Ipad/Iphone V1.5

I thought of the iPod background. There should be two different alternataiv. One Portrait URL and one Landscape URL. It gets a little crazy when you turn on the iPad
 
Ciano
Apple Fan
Profile
Posts: 22
Reg: Jan 24, 2011
location unknow...
220
like
02/09/11 03:05 AM (15 years ago)
Mackimack - Did you get your app to display a different background on the iPad ? I used the larger device option , and placed the iPad background in the BT_images folder but it doesnt seem to work? Did you manage to make this work?
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
02/09/11 03:27 AM (15 years ago)
I used the background image url. I tried to paste a picture of BT-Image folder, but it did not work for me either. :(
 
Ciano
Apple Fan
Profile
Posts: 22
Reg: Jan 24, 2011
location unknow...
220
like
02/09/11 03:28 AM (15 years ago)
Lol Glad to hear isnt not be just making another newbie mistake so ! :-)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/09/11 09:41 AM (15 years ago)
Hi Guys... Background images can be confusing. The difficulty is usually realted to the images size and scale. The control panel allows you to configure to different images, one for small devices and one for large devices. Small devices are iPad / iPhone, large devices is iPad. The idea is that the two different devices may use different images for backgrounds. If you use the same image for both, it may or may not look right, depending on what you're design is. Another thing, if you use the same image name or url for the both, they will get the same image. I don't understand the 'tried to paste an image of BT-image folder' comment. The BT_images folder is used for images that do not come from the web. Add images to this folder in your Xcode project (add the to the project by doing Add > Existing Item in Xcode, don't just drag them into the source-code directory you downloaded). a) Add the images to the Xcode project b) Enter the image names in the control panel c) Let us know how it worked
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
02/09/11 09:50 AM (15 years ago)
Sorry I wrote a little weird. I put a picture in BT_images folder. Then I wrote the image name in the Control Panel, but it did not work in either small or large Device. And I tried it with one at a time.
 
Ciano
Apple Fan
Profile
Posts: 22
Reg: Jan 24, 2011
location unknow...
220
like
02/09/11 09:53 AM (15 years ago)
I did the same but also placed it into xcode. It works perfectly for the iPhone (small ) image but doesnt change for the iPad. When I load it app on iPad it loads with the iPhone Background not the iPad background? I have them called two different names etc
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/09/11 09:55 AM (15 years ago)
Good info.... looking into this now.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/09/11 09:58 AM (15 years ago)
@Ciano What screen are you using the iPad background on? You have a long list of screens and it would be much easier if I know which screen we were talking about ;-)
 
Ciano
Apple Fan
Profile
Posts: 22
Reg: Jan 24, 2011
location unknow...
220
like
02/09/11 09:59 AM (15 years ago)
Ha Good Question ! Ill got have a look now ! Cant remember which one I was testing it on !!
 
Ciano
Apple Fan
Profile
Posts: 22
Reg: Jan 24, 2011
location unknow...
220
like
02/09/11 10:05 AM (15 years ago)
David Its on my Home (Menu / Buttons ) page . I just checked that yes the ipadscreen.png is in xcode and did another build and run install onto my ipad to check and updated the app just to make sure. It still shows the iPhone background (albeit scaled to fit the iPad screen)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/09/11 12:11 PM (15 years ago)
Got it! Typo on our end. in BT_Objects folder > BT_background_view.m you'll see this around line 95: if([appDelegate.rootApp.rootDevice isIPad]){ self.imageName = [BT_strings getStyleValueForScreen:theScreenData:@backgroundImageNameSmallDevice:@]; self.imageURL = [BT_strings getStyleValueForScreen:theScreenData:@backgroundImageURLSmallDevice:@]; } Notice the 'backgroundImageNameSmallDevice' and 'backgroundImageURLSmallDevice' inside the 'is this an ipad' conditional check. In your project, AND EVERYONE ELSES project, this incorrectt. It should read 'backgroundImageNameLargeDevice' and backgroundImageURLLargeDevice' - THIS HAS BEEN FIXED in the source-code but you will need to make the adjustment or re-download. Ugh, you've been re-downloading all day - sorry for this. But, it's this tiny little typos and issues that the Early Adopters are helping find - great work. After your adjustment it (or in the new source if you re-downloaded) it will read: if([appDelegate.rootApp.rootDevice isIPad]){ self.imageName = [BT_strings getStyleValueForScreen:theScreenData:@backgroundImageNameLargeDevice:@]; self.imageURL = [BT_strings getStyleValueForScreen:theScreenData:@backgroundImageURLLargeDevice:@]; } This should fix it, let us know if it doesn't.
 
Mackimack
Apple Fan
Profile
Posts: 481
Reg: Dec 30, 2010
Sweden
14,310
like
02/09/11 12:52 PM (15 years ago)
You are incredible David!! Im glad we could solve today's problems! We'll see if we find any problems tomorrow! :)
 
Ciano
Apple Fan
Profile
Posts: 22
Reg: Jan 24, 2011
location unknow...
220
like
02/09/11 12:53 PM (15 years ago)
Yipee. Does that mean at last I found an issue that wasnt caused by me :-) I feel like a computer god :-) I'm available for job offers David!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
02/09/11 01:15 PM (15 years ago)
Job offer - funny - you're already working without the pay! Whether you think so or not, none of the issues and questions you ask are 'your fault' and you shouldn't feel silly about asking. The whole idea is to make this easy and understandable for the largest number of folks. Your insights and perspectives, and struggles, and 'this doesn't work' experiences are tremendously helpful and a very important part of the process. Of course we feel good for helping, and of course we feel good when people are genuinely appreciative - like you are. But, make no mistake, folks like you are spending an aweful lot of time messing around with things that should JUST WORK without being confused or in some cases broken. The least we can do is put in a little effort to help ;-)
 

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.